summaryrefslogtreecommitdiff
path: root/numpy/testing/tests/test_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/testing/tests/test_utils.py')
-rw-r--r--numpy/testing/tests/test_utils.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/numpy/testing/tests/test_utils.py b/numpy/testing/tests/test_utils.py
index 2d42e0a9a..275e34b2c 100644
--- a/numpy/testing/tests/test_utils.py
+++ b/numpy/testing/tests/test_utils.py
@@ -7,14 +7,12 @@ class _GenericTest(object):
self._assert_func(a, b)
def _test_not_equal(self, a, b):
- passed = False
try:
self._assert_func(a, b)
passed = True
except AssertionError:
pass
-
- if passed:
+ else:
raise AssertionError("a and b are found equal but are not")
def test_array_rank1_eq(self):