gh-130567: Enable previously skipped locale tests on FreeBSD and macOS (GH-138652)

This commit is contained in:
Serhiy Storchaka
2025-09-29 18:32:38 +03:00
committed by GitHub
parent 8bfdda21a3
commit 1b8dcdacc7

View 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)