summaryrefslogtreecommitdiff
path: root/numpy/testing/tests/test_utils.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2008-08-29 01:23:43 +0000
committerCharles Harris <charlesr.harris@gmail.com>2008-08-29 01:23:43 +0000
commit78daaef65ba66f067ff3e65ef57970937eb5ba02 (patch)
tree1b847da83dda5159687a747262745c7e55c615f9 /numpy/testing/tests/test_utils.py
parente4656b563cd33e50983635c5dcc79a7d4e5aedc5 (diff)
downloadnumpy-78daaef65ba66f067ff3e65ef57970937eb5ba02.tar.gz
Small cleanup.
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):