[Python-checkins] r84912 - python/branches/py3k/Lib/test/test_subprocess.py
antoine.pitrou
python-checkins at python.org
Mon Sep 20 02:12:19 CEST 2010
Author: antoine.pitrou
Date: Mon Sep 20 02:12:19 2010
New Revision: 84912
Log:
Try to fix buildbot failure (#9902)
Modified:
python/branches/py3k/Lib/test/test_subprocess.py
Modified: python/branches/py3k/Lib/test/test_subprocess.py
==============================================================================
--- python/branches/py3k/Lib/test/test_subprocess.py (original)
+++ python/branches/py3k/Lib/test/test_subprocess.py Mon Sep 20 02:12:19 2010
@@ -891,6 +891,10 @@
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)
More information about the Python-checkins
mailing list