From cf2217e66326edd76d1ba4615842c0b42bb40a62 Mon Sep 17 00:00:00 2001 From: cookedm Date: Mon, 24 Dec 2007 16:44:31 +0000 Subject: 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) --- numpy/testing/numpytest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'numpy/testing/numpytest.py') diff --git a/numpy/testing/numpytest.py b/numpy/testing/numpytest.py index 68d64827b..9c9080fad 100644 --- a/numpy/testing/numpytest.py +++ b/numpy/testing/numpytest.py @@ -131,7 +131,8 @@ class NumpyTestCase (unittest.TestCase): 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) -- cgit v1.2.1