[Numpy-svn] r4641 - trunk/numpy/testing

numpy-svn at scipy.org numpy-svn at scipy.org
Mon Dec 24 11:44:34 EST 2007


Author: cookedm
Date: 2007-12-24 10:44:31 -0600 (Mon, 24 Dec 2007)
New Revision: 4641

Modified:
   trunk/numpy/testing/numpytest.py
Log:
testing/numpytest.py: only handle IgnoreException when we have a test
result that we can actually work with (for instance, not nose's ResultProxy
objects)


Modified: trunk/numpy/testing/numpytest.py
===================================================================
--- trunk/numpy/testing/numpytest.py	2007-12-24 16:38:23 UTC (rev 4640)
+++ trunk/numpy/testing/numpytest.py	2007-12-24 16:44:31 UTC (rev 4641)
@@ -131,7 +131,8 @@
         return 0.01*elapsed
 
     def __call__(self, result=None):
-        if result is None:
+        if result is None or not hasattr(result, 'errors') \
+                or not hasattr(result, 'stream'):
             return unittest.TestCase.__call__(self, result)
 
         nof_errors = len(result.errors)




More information about the Numpy-svn mailing list