Commit c91f6ee5 authored by Stefan Behnel's avatar Stefan Behnel

Make sure that the test runner passes the I/O encoding down into end-to-end srctree tests.

parent 8444288c
......@@ -1766,6 +1766,8 @@ class EndToEndTest(unittest.TestCase):
if old_path:
new_path = new_path + os.pathsep + old_path
env['PYTHONPATH'] = new_path
if not env.get("PYTHONIOENCODING"):
env["PYTHONIOENCODING"] = sys.stdout.encoding or sys.getdefaultencoding()
cmd = []
out = []
err = []
......
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