[Python-checkins] [3.7] bpo-34347: Fix test_utf8_mode.test_cmd_line for AIX (GH-8923) (GH-14233)
Victor Stinner
webhook-mailer at python.org
Wed Jun 19 16:07:50 EDT 2019
https://github.com/python/cpython/commit/15e7d2432294ec46f1ad84ce958fdeb9d4ca78b1
commit: 15e7d2432294ec46f1ad84ce958fdeb9d4ca78b1
branch: 3.7
author: Michael Felt <aixtools at users.noreply.github.com>
committer: Victor Stinner <vstinner at redhat.com>
date: 2019-06-19T22:07:34+02:00
summary:
[3.7] bpo-34347: Fix test_utf8_mode.test_cmd_line for AIX (GH-8923) (GH-14233)
files:
A Misc/NEWS.d/next/Tests/2018-08-25-13-28-18.bpo-34347.IsRDPB.rst
M Lib/test/test_utf8_mode.py
diff --git a/Lib/test/test_utf8_mode.py b/Lib/test/test_utf8_mode.py
index 554abfab3163..06fe1979ddcc 100644
--- a/Lib/test/test_utf8_mode.py
+++ b/Lib/test/test_utf8_mode.py
@@ -228,6 +228,8 @@ def check(utf8_opt, expected, **kw):
if sys.platform == 'darwin' or support.is_android:
c_arg = arg_utf8
+ elif sys.platform.startswith("aix"):
+ c_arg = arg.decode('iso-8859-1')
else:
c_arg = arg_ascii
for loc in POSIX_LOCALES:
diff --git a/Misc/NEWS.d/next/Tests/2018-08-25-13-28-18.bpo-34347.IsRDPB.rst b/Misc/NEWS.d/next/Tests/2018-08-25-13-28-18.bpo-34347.IsRDPB.rst
new file mode 100644
index 000000000000..e581f605f75a
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2018-08-25-13-28-18.bpo-34347.IsRDPB.rst
@@ -0,0 +1 @@
+Fix ``test_utf8_mode.test_cmd_line`` for AIX. Patch by M. Felt
More information about the Python-checkins
mailing list