diff options
| author | cookedm <cookedm@localhost> | 2007-12-24 16:44:31 +0000 |
|---|---|---|
| committer | cookedm <cookedm@localhost> | 2007-12-24 16:44:31 +0000 |
| commit | cf2217e66326edd76d1ba4615842c0b42bb40a62 (patch) | |
| tree | 4a42ae599b470361699019b4778b833487a63ad5 /numpy/testing/numpytest.py | |
| parent | b785d554419381568785481800054adc90a8022b (diff) | |
| download | numpy-cf2217e66326edd76d1ba4615842c0b42bb40a62.tar.gz | |
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)
Diffstat (limited to 'numpy/testing/numpytest.py')
| -rw-r--r-- | numpy/testing/numpytest.py | 3 |
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) |
