diff --git a/Lib/test/test_locale.py b/Lib/test/test_locale.py index 01b1e754d04219..f3cb1fd323fd84 100644 --- a/Lib/test/test_locale.py +++ b/Lib/test/test_locale.py @@ -351,8 +351,7 @@ def setUp(self): 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) @@ -371,6 +370,8 @@ def test_strcoll_with_diacritic(self): "gh-124108: NetBSD doesn't support UTF-8 for LC_COLLATE") def test_strxfrm_with_diacritic(self): self.assertLess(locale.strxfrm('à'), locale.strxfrm('b')) + # gh-130567: Should not crash on macOS. + locale.strxfrm('Gwich\u02bcin') class NormalizeTest(unittest.TestCase):