summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorpxinwr <peixing.xin@windriver.com>2020-04-09 15:46:23 (GMT)
committerGitHub <noreply@github.com>2020-04-09 15:46:23 (GMT)
commit5cd28030092eaa8eb9223afd733974fd2afc8e2c (patch)
tree7525e205320140071991fe4131c1601b2c13c4fa /Lib
parentdcb04d9c6dd6f31449ade6765fa4d26a305e7381 (diff)
downloadcpython-5cd28030092eaa8eb9223afd733974fd2afc8e2c.zip
cpython-5cd28030092eaa8eb9223afd733974fd2afc8e2c.tar.gz
cpython-5cd28030092eaa8eb9223afd733974fd2afc8e2c.tar.bz2
bpo-31904: Fix test_c_locale_coercion encodings for VxWorks RTOS (GH-19448)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_c_locale_coercion.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_c_locale_coercion.py b/Lib/test/test_c_locale_coercion.py
index fb599b0..8340a9e 100644
--- a/Lib/test/test_c_locale_coercion.py
+++ b/Lib/test/test_c_locale_coercion.py
@@ -49,6 +49,10 @@ elif sys.platform == "cygwin":
# TODO: Work out a robust dynamic test for this that doesn't rely on
# CPython's own locale handling machinery
EXPECT_COERCION_IN_DEFAULT_LOCALE = False
+elif sys.platform == "vxworks":
+ # VxWorks defaults to using UTF-8 for all system interfaces
+ EXPECTED_C_LOCALE_STREAM_ENCODING = "utf-8"
+ EXPECTED_C_LOCALE_FS_ENCODING = "utf-8"
# Note that the above expectations are still wrong in some cases, such as:
# * Windows when PYTHONLEGACYWINDOWSFSENCODING is set