Commit 89d79b14 authored by Michael Felt's avatar Michael Felt Committed by Gregory P. Smith

Remove AIX workaround test_subprocess (GH-8939)

An old apparent AIX behavior workaround in test_subprocess's
test_undecodable_env is no longer needed.
parent a2eefa67
......@@ -2228,15 +2228,9 @@ class POSIXProcessTestCase(BaseTestCase):
env = os.environ.copy()
env[key] = value
# Use C locale to get ASCII for the locale encoding to force
# surrogate-escaping of \xFF in the child process; otherwise it can
# be decoded as-is if the default locale is latin-1.
# surrogate-escaping of \xFF in the child process
env['LC_ALL'] = 'C'
if sys.platform.startswith("aix"):
# On AIX, the C locale uses the Latin1 encoding
decoded_value = encoded_value.decode("latin1", "surrogateescape")
else:
# On other UNIXes, the C locale uses the ASCII encoding
decoded_value = value
decoded_value = value
stdout = subprocess.check_output(
[sys.executable, "-c", script],
env=env)
......
Remove special condition for AIX in `test_subprocess.test_undecodable_env`
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment