summaryrefslogtreecommitdiff
path: root/numpy/core/tests
diff options
context:
space:
mode:
authorAllan Haldane <allan.haldane@gmail.com>2019-08-31 20:43:13 -0400
committerAllan Haldane <allan.haldane@gmail.com>2019-09-05 18:07:18 -0400
commitd6f7524defc808f32219528350429d5569696183 (patch)
tree717e40e1f6c4f3de714211e7e0e7ef947dc34b54 /numpy/core/tests
parent7c3adfb7436a37d995721f1c793e5e3ced6d9b7e (diff)
downloadnumpy-d6f7524defc808f32219528350429d5569696183.tar.gz
BUG: Fix fieldless comparison broadcasting
Fixes #13438
Diffstat (limited to 'numpy/core/tests')
-rw-r--r--numpy/core/tests/test_dtype.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/tests/test_dtype.py b/numpy/core/tests/test_dtype.py
index 6230b27b7..f5ca775ef 100644
--- a/numpy/core/tests/test_dtype.py
+++ b/numpy/core/tests/test_dtype.py
@@ -441,8 +441,8 @@ class TestRecord(object):
assert_equal(np.zeros(2, dtype=[]) == np.zeros(2, dtype=[]),
np.ones(2, dtype=bool))
- assert_equal(np.zeros(2, dtype=[]) == a,
- np.ones(2, dtype=bool))
+ assert_equal(np.zeros((1, 2), dtype=[]) == a,
+ np.ones((1, 2), dtype=bool))
class TestSubarray(object):