Skip to content

Commit 3b20303

Browse files
[3.13] GH-124108: Skip test_locale.test_strcoll_with_diacritic() on NetBSD (GH-124110) (#124146)
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 74edb7d commit 3b20303

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
@@ -355,6 +355,8 @@ def setUp(self):
355355
is_emscripten or is_wasi,
356356
"musl libc issue on Emscripten/WASI, bpo-46390"
357357
)
358+
@unittest.skipIf(sys.platform.startswith("netbsd"),
359+
"gh-124108: NetBSD doesn't support UTF-8 for LC_COLLATE")
358360
def test_strcoll_with_diacritic(self):
359361
self.assertLess(locale.strcoll('à', 'b'), 0)
360362

@@ -364,6 +366,8 @@ def test_strcoll_with_diacritic(self):
364366
is_emscripten or is_wasi,
365367
"musl libc issue on Emscripten/WASI, bpo-46390"
366368
)
369+
@unittest.skipIf(sys.platform.startswith("netbsd"),
370+
"gh-124108: NetBSD doesn't support UTF-8 for LC_COLLATE")
367371
def test_strxfrm_with_diacritic(self):
368372
self.assertLess(locale.strxfrm('à'), locale.strxfrm('b'))
369373

0 commit comments

Comments
 (0)