Skip to content

Commit 403322e

Browse files
vstinnergrantlouisherman
authored andcommitted
gh-149879: Fix test_c_locale_coercion on Cygwin (#150250)
1 parent 344f35d commit 403322e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Lib/test/test_c_locale_coercion.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@
4747
# FS encoding is UTF-8 on macOS
4848
EXPECTED_C_LOCALE_FS_ENCODING = "utf-8"
4949
elif sys.platform == "cygwin":
50-
# Cygwin defaults to using C.UTF-8
51-
# TODO: Work out a robust dynamic test for this that doesn't rely on
52-
# CPython's own locale handling machinery
50+
DEFAULT_LOCALE_IS_C = False
51+
DEFAULT_ENCODING = "utf-8"
5352
EXPECT_COERCION_IN_DEFAULT_LOCALE = False
5453
elif sys.platform == "vxworks":
5554
# VxWorks defaults to using UTF-8 for all system interfaces

0 commit comments

Comments
 (0)