summaryrefslogtreecommitdiff
path: root/numpy/testing/numpytest.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/testing/numpytest.py')
-rw-r--r--numpy/testing/numpytest.py3
1 files changed, 2 insertions, 1 deletions
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)