summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2021-08-06 22:14:55 +0200
committerStefan Behnel <stefan_ml@behnel.de>2021-08-06 22:14:55 +0200
commit931710d8b12424f4d4c5466bede28ed14f16ca5e (patch)
tree1225662bf3d71aa380f59099abfefb0315f33081
parentb99236195ee76499303c0cc2f63e42cc98a0ed53 (diff)
downloadcython-931710d8b12424f4d4c5466bede28ed14f16ca5e.tar.gz
Fix output encoding problems in the test runner with Py2.7 by replacing implicit calls to str() with (unicode) string concatenation.
-rwxr-xr-xruntests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtests.py b/runtests.py
index d29c76890..237455b1b 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 %s:\n%s" % (module, stderr))
+ print(u"Compiler output for module " + module + ":" + stderr)
if error is not None:
- raise CompileError(u"%s\nCompiler output:\n%s" % (error, stderr))
+ raise CompileError(error + u"\nCompiler output:\n" + stderr)
finally:
os.chdir(cwd)