Skip to content

Commit 2f9dc65

Browse files
[3.12] GH-124108: Skip test_locale.test_strcoll_with_diacritic() on NetBSD (GH-124110) (#124147)
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 10de360) Co-authored-by: Furkan Onder <[email protected]>
1 parent 446203e commit 2f9dc65

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_locale.py

+4
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,8 @@ def setUp(self):
353353
is_emscripten or is_wasi,
354354
"musl libc issue on Emscripten/WASI, bpo-46390"
355355
)
356+
@unittest.skipIf(sys.platform.startswith("netbsd"),
357+
"gh-124108: NetBSD doesn't support UTF-8 for LC_COLLATE")
356358
def test_strcoll_with_diacritic(self):
357359
self.assertLess(locale.strcoll('à', 'b'), 0)
358360

@@ -362,6 +364,8 @@ def test_strcoll_with_diacritic(self):
362364
is_emscripten or is_wasi,
363365
"musl libc issue on Emscripten/WASI, bpo-46390"
364366
)
367+
@unittest.skipIf(sys.platform.startswith("netbsd"),
368+
"gh-124108: NetBSD doesn't support UTF-8 for LC_COLLATE")
365369
def test_strxfrm_with_diacritic(self):
366370
self.assertLess(locale.strxfrm('à'), locale.strxfrm('b'))
367371

0 commit comments

Comments
 (0)