From 0660d2216959a0568b1ae97c94725d3e58c5ac03 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 29 Sep 2025 18:32:38 +0300 Subject: [PATCH] gh-130567: Enable previously skipped locale tests on FreeBSD and macOS (GH-138652) (cherry picked from commit 1b8dcdacc75caa8175f89c7e739e45d856ebf511) Co-authored-by: Serhiy Storchaka --- Lib/test/test_locale.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/test/test_locale.py b/Lib/test/test_locale.py index 878a557e180fe4..71d03f3a3f904b 100644 --- a/Lib/test/test_locale.py +++ b/Lib/test/test_locale.py @@ -345,8 +345,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)