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.py2
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):