|
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
|
@@ -1943,7 +1943,10 @@ def test_bug_20998(self):
|
1943 | 1943 | # with ignore case.
|
1944 | 1944 | self.assertEqual(re.fullmatch('[a-c]+', 'ABC', re.I).span(), (0, 3))
|
1945 | 1945 |
|
1946 |
| - @unittest.skipIf(is_emscripten, "musl libc issue on Emscripten, bpo-46390") |
| 1946 | + @unittest.skipIf( |
| 1947 | + is_emscripten or is_wasi, |
| 1948 | + "musl libc issue on Emscripten/WASI, bpo-46390" |
| 1949 | + ) |
1947 | 1950 | def test_locale_caching(self):
|
1948 | 1951 | # Issue #22410
|
1949 | 1952 | oldlocale = locale.setlocale(locale.LC_CTYPE)
|
@@ -1980,7 +1983,10 @@ def check_en_US_utf8(self):
|
1980 | 1983 | self.assertIsNone(re.match(b'(?Li)\xc5', b'\xe5'))
|
1981 | 1984 | self.assertIsNone(re.match(b'(?Li)\xe5', b'\xc5'))
|
1982 | 1985 |
|
1983 |
| - @unittest.skipIf(is_emscripten, "musl libc issue on Emscripten, bpo-46390") |
| 1986 | + @unittest.skipIf( |
| 1987 | + is_emscripten or is_wasi, |
| 1988 | + "musl libc issue on Emscripten/WASI, bpo-46390" |
| 1989 | + ) |
1984 | 1990 | def test_locale_compiled(self):
|
1985 | 1991 | oldlocale = locale.setlocale(locale.LC_CTYPE)
|
1986 | 1992 | self.addCleanup(locale.setlocale, locale.LC_CTYPE, oldlocale)
|
|
0 commit comments