From 78daaef65ba66f067ff3e65ef57970937eb5ba02 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Fri, 29 Aug 2008 01:23:43 +0000 Subject: Small cleanup. --- numpy/testing/tests/test_utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'numpy/testing/tests/test_utils.py') 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): -- cgit v1.2.1