]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-130567: Enable previously skipped locale tests on FreeBSD and macOS (GH-138652)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 29 Sep 2025 15:32:38 +0000 (18:32 +0300)
committerGitHub <noreply@github.com>
Mon, 29 Sep 2025 15:32:38 +0000 (17:32 +0200)
Lib/test/test_locale.py

index 01b1e754d0421918b96166db454a7654b507ad22..d49f78c91da1b30f1a8a7d2b0277c86cbba2563f 100644 (file)
@@ -351,8 +351,7 @@ class TestEnUSCollation(BaseLocalizedTest, TestCollation):
         enc = codecs.lookup(locale.getencoding() or 'ascii').name
         if enc not in ('utf-8', 'iso8859-1', 'cp1252'):
             raise unittest.SkipTest('encoding not suitable')
-        if enc != 'iso8859-1' and (sys.platform == 'darwin' or is_android or
-                                   sys.platform.startswith('freebsd')):
+        if enc != 'iso8859-1' and is_android:
             raise unittest.SkipTest('wcscoll/wcsxfrm have known bugs')
         BaseLocalizedTest.setUp(self)