From: Antoine Pitrou Date: Mon, 20 Sep 2010 00:12:19 +0000 (+0000) Subject: Try to fix buildbot failure (#9902) X-Git-Tag: v3.2a3~206 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84e751a4429637418970eebc6300d8ac0603da8a;p=python Try to fix buildbot failure (#9902) --- diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 7341b0b681..dc6eff6490 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -891,6 +891,10 @@ class POSIXProcessTestCase(BaseTestCase): script = "import os; print(ascii(os.getenv(%s)))" % repr(key) env = os.environ.copy() 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( [sys.executable, "-c", script], env=env)