mirror of
https://github.com/python/cpython.git
synced 2025-08-10 03:49:18 +00:00
[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 10de3600a9
)
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
This commit is contained in:
parent
446203e122
commit
2f9dc65e12
1 changed files with 4 additions and 0 deletions
|
@ -353,6 +353,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)
|
||||
|
||||
|
@ -362,6 +364,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'))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue