mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Issue #9992: Remove PYTHONFSENCODING environment variable.
This commit is contained in:
parent
aa96592a59
commit
8f6b6b0cc3
8 changed files with 8 additions and 100 deletions
|
@ -885,10 +885,6 @@ 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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue