run-tests: set python stdio encoding to utf-8
This commit is contained in:
parent
ed3f0c4ff5
commit
79a686eb95
1 changed files with 2 additions and 1 deletions
|
|
@ -389,7 +389,8 @@ def run_tests(pyb, tests, args, base_path="."):
|
|||
# run CPython to work out expected output
|
||||
e = {"PYTHONPATH": os.getcwd(),
|
||||
"PATH": os.environ["PATH"],
|
||||
"LANG": "en_US.UTF-8"}
|
||||
"LANG": "en_US.UTF-8",
|
||||
"PYTHONIOENCODING": "utf-8"}
|
||||
if 'SYSTEMROOT' in os.environ:
|
||||
e['SYSTEMROOT'] = os.environ['SYSTEMROOT']
|
||||
p = subprocess.Popen([CPYTHON3, '-B', test_file], env=e, stdout=subprocess.PIPE)
|
||||
|
|
|
|||
Loading…
Reference in a new issue