]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] GH-124108: Skip test_locale.test_strcoll_with_diacritic() on NetBSD (GH-124110...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 23 Sep 2024 23:37:06 +0000 (01:37 +0200)
committerGitHub <noreply@github.com>
Mon, 23 Sep 2024 23:37:06 +0000 (16:37 -0700)
GH-124108: Skip test_locale.test_strcoll_with_diacritic() on NetBSD (GH-124110)

Skip test_strcoll_with_diacritic() and test_strxfrm_with_diacritic()
of test_locale on NetBSD due to lack of UTF-8 LC_COLLATE
support.
(cherry picked from commit 10de3600a908f96d1c43dac85ef867991d54708e)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
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'))