diff options
author | cookedm <cookedm@localhost> | 2006-06-28 18:35:16 +0000 |
---|---|---|
committer | cookedm <cookedm@localhost> | 2006-06-28 18:35:16 +0000 |
commit | b75bb07b82bacfe324ee631e7218b45f281a65e7 (patch) | |
tree | 4511aefbd0074c4eef0897c843e5a447d6013463 /numpy/testing/numpytest.py | |
parent | 145d10cd37fe61c5dcdf1d5841b7d23b09751038 (diff) | |
download | numpy-b75bb07b82bacfe324ee631e7218b45f281a65e7.tar.gz |
from Neilen Marais: make numpy.testing compatible with the nosetest package with a trivial patch
Diffstat (limited to 'numpy/testing/numpytest.py')
-rw-r--r-- | numpy/testing/numpytest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/testing/numpytest.py b/numpy/testing/numpytest.py index d855577da..df552a208 100644 --- a/numpy/testing/numpytest.py +++ b/numpy/testing/numpytest.py @@ -139,7 +139,7 @@ class NumpyTestCase (unittest.TestCase): result.stream = _dummy_stream(save_stream) unittest.TestCase.__call__(self, result) if nof_errors != len(result.errors): - test, errstr = result.errors[-1] + test, errstr = result.errors[-1][:2] if isinstance(errstr, tuple): errstr = str(errstr[0]) elif isinstance(errstr, str): |