mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Try to fix buildbot failure (#9902)
This commit is contained in:
parent
7c08744f52
commit
84e751a442
1 changed files with 4 additions and 0 deletions
|
@ -891,6 +891,10 @@ class POSIXProcessTestCase(BaseTestCase):
|
||||||
script = "import os; print(ascii(os.getenv(%s)))" % repr(key)
|
script = "import os; print(ascii(os.getenv(%s)))" % repr(key)
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
env[key] = value
|
env[key] = value
|
||||||
|
# Force surrogate-escaping of \xFF in the child process;
|
||||||
|
# otherwise it can be decoded as-is if the default locale
|
||||||
|
# is latin-1.
|
||||||
|
env['PYTHONFSENCODING'] = 'ascii'
|
||||||
stdout = subprocess.check_output(
|
stdout = subprocess.check_output(
|
||||||
[sys.executable, "-c", script],
|
[sys.executable, "-c", script],
|
||||||
env=env)
|
env=env)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue