]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-124108: Skip test_locale.test_strcoll_with_diacritic() on NetBSD (#124110)
authorFurkan Onder <furkanonder@protonmail.com>
Mon, 16 Sep 2024 23:00:36 +0000 (02:00 +0300)
committerGitHub <noreply@github.com>
Mon, 16 Sep 2024 23:00:36 +0000 (23:00 +0000)
Skip test_strcoll_with_diacritic() and test_strxfrm_with_diacritic()
of test_locale on NetBSD due to lack of UTF-8 LC_COLLATE
support.

Lib/test/test_locale.py

index da4bd79746a476e0c3240d8844333cac4d6eaad2..00e93d8e78443d47b7e9c833f633c76e54802927 100644 (file)
@@ -355,6 +355,8 @@ class TestEnUSCollation(BaseLocalizedTest, TestCollation):
         is_emscripten or is_wasi,
         "musl libc issue on Emscripten/WASI, bpo-46390"
     )
+    @unittest.skipIf(sys.platform.startswith("netbsd"),
+                     "gh-124108: NetBSD doesn't support UTF-8 for LC_COLLATE")
     def test_strcoll_with_diacritic(self):
         self.assertLess(locale.strcoll('à', 'b'), 0)
 
@@ -364,6 +366,8 @@ class TestEnUSCollation(BaseLocalizedTest, TestCollation):
         is_emscripten or is_wasi,
         "musl libc issue on Emscripten/WASI, bpo-46390"
     )
+    @unittest.skipIf(sys.platform.startswith("netbsd"),
+                     "gh-124108: NetBSD doesn't support UTF-8 for LC_COLLATE")
     def test_strxfrm_with_diacritic(self):
         self.assertLess(locale.strxfrm('à'), locale.strxfrm('b'))