summaryrefslogtreecommitdiffstats
path: root/Lib/test/test__locale.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-05-16 18:15:56 (GMT)
committerGitHub <noreply@github.com>2022-05-16 18:15:56 (GMT)
commit8f937976bc3ce8ed14f9b7f933d4be550b0344d3 (patch)
treeeb6a3f8119fa176bcce437f92276ffdc97822e7c /Lib/test/test__locale.py
parent52e6596fb5f9371f3a1434dd7816e400862b4df8 (diff)
downloadcpython-8f937976bc3ce8ed14f9b7f933d4be550b0344d3.zip
cpython-8f937976bc3ce8ed14f9b7f933d4be550b0344d3.tar.gz
cpython-8f937976bc3ce8ed14f9b7f933d4be550b0344d3.tar.bz2
[3.11] gh-90473: Skip tests that don't apply to Emscripten and WASI (GH-92846) (GH-92851)
Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Lib/test/test__locale.py')
-rw-r--r--Lib/test/test__locale.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test__locale.py b/Lib/test/test__locale.py
index b3bc54c..0947464 100644
--- a/Lib/test/test__locale.py
+++ b/Lib/test/test__locale.py
@@ -109,7 +109,8 @@ class _LocaleTests(unittest.TestCase):
@unittest.skipUnless(nl_langinfo, "nl_langinfo is not available")
@unittest.skipIf(
- support.is_emscripten, "musl libc issue on Emscripten, bpo-46390"
+ support.is_emscripten or support.is_wasi,
+ "musl libc issue on Emscripten, bpo-46390"
)
def test_lc_numeric_nl_langinfo(self):
# Test nl_langinfo against known values
@@ -128,7 +129,8 @@ class _LocaleTests(unittest.TestCase):
self.skipTest('no suitable locales')
@unittest.skipIf(
- support.is_emscripten, "musl libc issue on Emscripten, bpo-46390"
+ support.is_emscripten or support.is_wasi,
+ "musl libc issue on Emscripten, bpo-46390"
)
def test_lc_numeric_localeconv(self):
# Test localeconv against known values