[Numpy-svn] r5719 - trunk/numpy/testing/tests
numpy-svn at scipy.org
numpy-svn at scipy.org
Thu Aug 28 21:23:49 EDT 2008
Author: charris
Date: 2008-08-28 20:23:43 -0500 (Thu, 28 Aug 2008)
New Revision: 5719
Modified:
trunk/numpy/testing/tests/test_utils.py
Log:
Small cleanup.
Modified: trunk/numpy/testing/tests/test_utils.py
===================================================================
--- trunk/numpy/testing/tests/test_utils.py 2008-08-28 22:53:06 UTC (rev 5718)
+++ trunk/numpy/testing/tests/test_utils.py 2008-08-29 01:23:43 UTC (rev 5719)
@@ -7,14 +7,12 @@
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):
More information about the Numpy-svn
mailing list