From c91f6ee58b83f66f04f5085734104ceef4571b3a Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 6 Apr 2020 20:58:02 +0200 Subject: Make sure that the test runner passes the I/O encoding down into end-to-end srctree tests. --- runtests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtests.py b/runtests.py index cadfd34e1..9918443ea 100755 --- a/runtests.py +++ b/runtests.py @@ -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 = [] -- cgit v1.2.1