Skip to content

Commit f4333d0

Browse files
hliu0vstinner
authored andcommitted
bpo-31904: Fix test_utf8_mode on VxWorks (GH-12428)
Python always use UTF-8 on VxWorks.
1 parent 34ef64f commit f4333d0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Lib/test/test_utf8_mode.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
MS_WINDOWS = (sys.platform == 'win32')
1414
POSIX_LOCALES = ('C', 'POSIX')
15-
15+
VXWORKS = (sys.platform == "vxworks")
1616

1717
class UTF8ModeTests(unittest.TestCase):
1818
DEFAULT_ENV = {
@@ -225,7 +225,7 @@ def check(utf8_opt, expected, **kw):
225225
with self.subTest(LC_ALL=loc):
226226
check('utf8', [arg_utf8], LC_ALL=loc)
227227

228-
if sys.platform == 'darwin' or support.is_android:
228+
if sys.platform == 'darwin' or support.is_android or VXWORKS:
229229
c_arg = arg_utf8
230230
elif sys.platform.startswith("aix"):
231231
c_arg = arg.decode('iso-8859-1')
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix test_utf8_mode on VxWorks: Python always use UTF-8 on VxWorks.

0 commit comments

Comments
 (0)