Skip to content

Commit 15e7d24

Browse files
aixtoolsvstinner
authored andcommitted
[3.7] bpo-34347: Fix test_utf8_mode.test_cmd_line for AIX (GH-8923) (GH-14233)
1 parent b64e42e commit 15e7d24

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Lib/test/test_utf8_mode.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ def check(utf8_opt, expected, **kw):
228228

229229
if sys.platform == 'darwin' or support.is_android:
230230
c_arg = arg_utf8
231+
elif sys.platform.startswith("aix"):
232+
c_arg = arg.decode('iso-8859-1')
231233
else:
232234
c_arg = arg_ascii
233235
for loc in POSIX_LOCALES:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix ``test_utf8_mode.test_cmd_line`` for AIX. Patch by M. Felt

0 commit comments

Comments
 (0)