Skip to content

Commit 89d79b1

Browse files
aixtoolsgpshead
authored andcommitted
Remove AIX workaround test_subprocess (GH-8939)
An old apparent AIX behavior workaround in test_subprocess's test_undecodable_env is no longer needed.
1 parent a2eefa6 commit 89d79b1

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

Lib/test/test_subprocess.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2228,15 +2228,9 @@ def test_undecodable_env(self):
22282228
env = os.environ.copy()
22292229
env[key] = value
22302230
# Use C locale to get ASCII for the locale encoding to force
2231-
# surrogate-escaping of \xFF in the child process; otherwise it can
2232-
# be decoded as-is if the default locale is latin-1.
2231+
# surrogate-escaping of \xFF in the child process
22332232
env['LC_ALL'] = 'C'
2234-
if sys.platform.startswith("aix"):
2235-
# On AIX, the C locale uses the Latin1 encoding
2236-
decoded_value = encoded_value.decode("latin1", "surrogateescape")
2237-
else:
2238-
# On other UNIXes, the C locale uses the ASCII encoding
2239-
decoded_value = value
2233+
decoded_value = value
22402234
stdout = subprocess.check_output(
22412235
[sys.executable, "-c", script],
22422236
env=env)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove special condition for AIX in `test_subprocess.test_undecodable_env`

0 commit comments

Comments
 (0)