From: Victor Stinner Date: Fri, 22 May 2026 13:47:38 +0000 (+0200) Subject: gh-149879: Fix test_c_locale_coercion on Cygwin (#150250) X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=55561b5f86cb8fb2fa9f1c539c2482307251b8dc;p=thirdparty%2FPython%2Fcpython.git gh-149879: Fix test_c_locale_coercion on Cygwin (#150250) --- diff --git a/Lib/test/test_c_locale_coercion.py b/Lib/test/test_c_locale_coercion.py index 340bec3c71b6..52323a0ec0ac 100644 --- a/Lib/test/test_c_locale_coercion.py +++ b/Lib/test/test_c_locale_coercion.py @@ -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