diff options
Diffstat (limited to 'numpy/testing/numpytest.py')
-rw-r--r-- | numpy/testing/numpytest.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/numpy/testing/numpytest.py b/numpy/testing/numpytest.py index 5ef2cc7f5..683df7a01 100644 --- a/numpy/testing/numpytest.py +++ b/numpy/testing/numpytest.py @@ -18,8 +18,9 @@ def output_exception(printstream = sys.stdout): #this is more verbose #traceback.print_exc() filename, lineno, function, text = info[-1] # last line only - print>>printstream, "%s:%d: %s: %s (in %s)" %\ - (filename, lineno, type.__name__, str(value), function) + msg = "%s:%d: %s: %s (in %s)\n" % ( + filename, lineno, type.__name__, str(value), function) + printstream.write(msg) finally: type = value = tb = None # clean up return |