]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-130567: Enable previously skipped locale tests on FreeBSD and macOS (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 30 Sep 2025 15:53:45 +0000 (17:53 +0200)
committerGitHub <noreply@github.com>
Tue, 30 Sep 2025 15:53:45 +0000 (17:53 +0200)
(cherry picked from commit 1b8dcdacc75caa8175f89c7e739e45d856ebf511)

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

index 878a557e180fe4f7c586df93e4547fbdbfbd341e..71d03f3a3f904b00b8fcb5db3e5f4fae3045339f 100644 (file)
@@ -345,8 +345,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)