]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-149879: Fix test_c_locale_coercion on Cygwin (#150250)
authorVictor Stinner <vstinner@python.org>
Fri, 22 May 2026 13:47:38 +0000 (15:47 +0200)
committerGitHub <noreply@github.com>
Fri, 22 May 2026 13:47:38 +0000 (15:47 +0200)
Lib/test/test_c_locale_coercion.py

index 340bec3c71b68f87cc6f7c3e1d6948c88f653785..52323a0ec0ac2bba54583e8eecb80c84cd40532b 100644 (file)
@@ -47,9 +47,8 @@ elif sys.platform == "darwin":
     # FS encoding is UTF-8 on macOS
     EXPECTED_C_LOCALE_FS_ENCODING = "utf-8"
 elif sys.platform == "cygwin":
-    # Cygwin defaults to using C.UTF-8
-    # TODO: Work out a robust dynamic test for this that doesn't rely on
-    #       CPython's own locale handling machinery
+    DEFAULT_LOCALE_IS_C = False
+    DEFAULT_ENCODING = "utf-8"
     EXPECT_COERCION_IN_DEFAULT_LOCALE = False
 elif sys.platform == "vxworks":
     # VxWorks defaults to using UTF-8 for all system interfaces