Commit 671da400 authored by Stefan Behnel's avatar Stefan Behnel

Py3.4 does not support '%' formatting for byte strings.

parent 7547cc31
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment