Skip to content

Commit

Permalink
GH-124108: Skip test_locale.test_strcoll_with_diacritic() on NetBSD (#…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
furkanonder committed Sep 16, 2024
1 parent a9c2bc1 commit 10de360
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Lib/test/test_locale.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,8 @@ def setUp(self):
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)

Expand All @@ -364,6 +366,8 @@ def test_strcoll_with_diacritic(self):
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'))

Expand Down

0 comments on commit 10de360

Please sign in to comment.