diff options
author | Pauli Virtanen <pav@iki.fi> | 2009-12-06 11:55:12 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2009-12-06 11:55:12 +0000 |
commit | 33867b6cbc2d12eac9a1c2a5b7af42fda1cd1a64 (patch) | |
tree | 26a00a2e3fa6cd32be9f279c05e458d4d1a0355a /numpy/testing/numpytest.py | |
parent | c0c266ea2e678dbb4f899d6f985f35b19fb88d08 (diff) | |
download | numpy-33867b6cbc2d12eac9a1c2a5b7af42fda1cd1a64.tar.gz |
3K: testing: clean up syntax that confused 2to3
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 |