summaryrefslogtreecommitdiff
path: root/numpy/testing/tests
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/testing/tests')
-rw-r--r--numpy/testing/tests/test_utils.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/numpy/testing/tests/test_utils.py b/numpy/testing/tests/test_utils.py
index c376a3852..9081f3d6e 100644
--- a/numpy/testing/tests/test_utils.py
+++ b/numpy/testing/tests/test_utils.py
@@ -186,9 +186,8 @@ class TestArrayEqual(_GenericTest):
a = np.array([1., 2.]).view(MyArray)
b = np.array([2., 3.]).view(MyArray)
- if np.core.overrides.ENABLE_ARRAY_FUNCTION:
- with assert_raises(TypeError):
- np.all(a)
+ with assert_raises(TypeError):
+ np.all(a)
self._test_equal(a, a)
self._test_not_equal(a, b)
self._test_not_equal(b, a)