|
1 | 1 | from test.support import (gc_collect, bigmemtest, _2G,
|
2 | 2 | cpython_only, captured_stdout,
|
3 |
| - check_disallow_instantiation, is_emscripten) |
| 3 | + check_disallow_instantiation, is_emscripten, is_wasi) |
4 | 4 | import locale
|
5 | 5 | import re
|
6 | 6 | import string
|
@@ -1974,7 +1974,10 @@ def test_bug_20998(self):
|
1974 | 1974 | # with ignore case.
|
1975 | 1975 | self.assertEqual(re.fullmatch('[a-c]+', 'ABC', re.I).span(), (0, 3))
|
1976 | 1976 |
|
1977 |
| - @unittest.skipIf(is_emscripten, "musl libc issue on Emscripten, bpo-46390") |
| 1977 | + @unittest.skipIf( |
| 1978 | + is_emscripten or is_wasi, |
| 1979 | + "musl libc issue on Emscripten/WASI, bpo-46390" |
| 1980 | + ) |
1978 | 1981 | def test_locale_caching(self):
|
1979 | 1982 | # Issue #22410
|
1980 | 1983 | oldlocale = locale.setlocale(locale.LC_CTYPE)
|
@@ -2011,7 +2014,10 @@ def check_en_US_utf8(self):
|
2011 | 2014 | self.assertIsNone(re.match(b'(?Li)\xc5', b'\xe5'))
|
2012 | 2015 | self.assertIsNone(re.match(b'(?Li)\xe5', b'\xc5'))
|
2013 | 2016 |
|
2014 |
| - @unittest.skipIf(is_emscripten, "musl libc issue on Emscripten, bpo-46390") |
| 2017 | + @unittest.skipIf( |
| 2018 | + is_emscripten or is_wasi, |
| 2019 | + "musl libc issue on Emscripten/WASI, bpo-46390" |
| 2020 | + ) |
2015 | 2021 | def test_locale_compiled(self):
|
2016 | 2022 | oldlocale = locale.setlocale(locale.LC_CTYPE)
|
2017 | 2023 | self.addCleanup(locale.setlocale, locale.LC_CTYPE, oldlocale)
|
|
0 commit comments