summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorMichael Felt <aixtools@users.noreply.github.com>2018-08-26 17:29:36 (GMT)
committerGregory P. Smith <greg@krypto.org>2018-08-26 17:29:36 (GMT)
commit89d79b1449750b14ded0149dcdd1e39247f2c65d (patch)
tree2f0436b12e5ac9ba0c793f9f53b969c38c8fa07f /Lib/test
parenta2eefa67542c25617a58c03a27c17fd48e2a0856 (diff)
downloadcpython-89d79b1449750b14ded0149dcdd1e39247f2c65d.zip
cpython-89d79b1449750b14ded0149dcdd1e39247f2c65d.tar.gz
cpython-89d79b1449750b14ded0149dcdd1e39247f2c65d.tar.bz2
Remove AIX workaround test_subprocess (GH-8939)
An old apparent AIX behavior workaround in test_subprocess's test_undecodable_env is no longer needed.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_subprocess.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index 73b57b2..4719773 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -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)