diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2020-04-06 20:58:02 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2020-04-06 21:01:14 +0200 |
commit | c91f6ee58b83f66f04f5085734104ceef4571b3a (patch) | |
tree | 37956a75d4dc9e9e7d0b1b0db2e1667366dbf464 | |
parent | 8444288c5a53924ad7454f4461bbb3413aebf302 (diff) | |
download | cython-c91f6ee58b83f66f04f5085734104ceef4571b3a.tar.gz |
Make sure that the test runner passes the I/O encoding down into end-to-end srctree tests.
-rwxr-xr-x | runtests.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 = [] |