summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2021-08-07 10:03:50 +0200
committerStefan Behnel <stefan_ml@behnel.de>2021-08-07 10:03:50 +0200
commit671da4001c8f41739c58ca84c8195d382ead9da9 (patch)
tree59084a0e0cfdccc9787bc959bbc15c6a575943d6
parent7547cc311909c625835c0d5c0a90f490eaa5fe5d (diff)
downloadcython-671da4001c8f41739c58ca84c8195d382ead9da9.tar.gz
Py3.4 does not support '%' formatting for byte strings.
-rwxr-xr-xruntests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtests.py b/runtests.py
index 5592792d6..6622f9c67 100755
--- a/runtests.py
+++ b/runtests.py
@@ -1294,7 +1294,7 @@ class CythonCompileTestCase(unittest.TestCase):
stderr = get_stderr()
if stderr:
# The test module name should always be ASCII, but let's not risk encoding failures.
- output = b"Compiler output for module %s:\n%s\n" % (module.encode('utf-8'), stderr)
+ output = b"Compiler output for module " + module.encode('utf-8') + b":\n" + stderr + b"\n"
out = sys.stdout if sys.version_info[0] == 2 else sys.stdout.buffer
out.write(output)
if error is not None: