]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-130567: Enable previously skipped locale tests on FreeBSD and macOS (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 7 Oct 2025 20:11:34 +0000 (22:11 +0200)
committerGitHub <noreply@github.com>
Tue, 7 Oct 2025 20:11:34 +0000 (22:11 +0200)
(cherry picked from commit 1b8dcdacc75caa8175f89c7e739e45d856ebf511)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_locale.py

index 698e137e3e8abd6234f3ae048091f50e083e3455..8e49aa8954ee0d0eee45af1ab6d58c908776ab40 100644 (file)
@@ -350,8 +350,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)