summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2021-08-07 09:29:03 +0200
committerStefan Behnel <stefan_ml@behnel.de>2021-08-07 09:29:03 +0200
commit83699cf59c30191726448c6ca54ac3f0d18fe3b8 (patch)
tree8d65f743f4555b659ac9bfba0c2a47842eab5cf4
parent931710d8b12424f4d4c5466bede28ed14f16ca5e (diff)
downloadcython-83699cf59c30191726448c6ca54ac3f0d18fe3b8.tar.gz
Revert "Fix output encoding problems in the test runner with Py2.7 by replacing implicit calls to str() with (unicode) string concatenation."
This reverts commit 931710d8b12424f4d4c5466bede28ed14f16ca5e.
-rwxr-xr-xruntests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtests.py b/runtests.py
index 237455b1b..d29c76890 100755
--- a/runtests.py
+++ b/runtests.py
@@ -1293,9 +1293,9 @@ class CythonCompileTestCase(unittest.TestCase):
error = str(exc)
stderr = prepare_captured(get_stderr())
if stderr:
- print(u"Compiler output for module " + module + ":" + stderr)
+ print(u"Compiler output for module %s:\n%s" % (module, stderr))
if error is not None:
- raise CompileError(error + u"\nCompiler output:\n" + stderr)
+ raise CompileError(u"%s\nCompiler output:\n%s" % (error, stderr))
finally:
os.chdir(cwd)