https://github.com/python/cpython/commit/55561b5f86cb8fb2fa9f1c539c2482307251b8dc
commit: 55561b5f86cb8fb2fa9f1c539c2482307251b8dc
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2026-05-22T15:47:38+02:00
summary:

gh-149879: Fix test_c_locale_coercion on Cygwin (#150250)

files:
M Lib/test/test_c_locale_coercion.py

diff --git a/Lib/test/test_c_locale_coercion.py 
b/Lib/test/test_c_locale_coercion.py
index 340bec3c71b68f..52323a0ec0ac2b 100644
--- a/Lib/test/test_c_locale_coercion.py
+++ b/Lib/test/test_c_locale_coercion.py
@@ -47,9 +47,8 @@
     # 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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to