summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-05-13 06:36:01 (GMT)
committerGitHub <noreply@github.com>2022-05-13 06:36:01 (GMT)
commitd81d57e9598dea741e049f3876ccd87072a38906 (patch)
tree8713f4691a8a27495ddc8aa2189838ee010f5d5c /Lib/test
parente371d5d5d125b0acdde2791d88562338a7359500 (diff)
downloadcpython-d81d57e9598dea741e049f3876ccd87072a38906.zip
cpython-d81d57e9598dea741e049f3876ccd87072a38906.tar.gz
cpython-d81d57e9598dea741e049f3876ccd87072a38906.tar.bz2
gh-90473: Increase stack size, disable obmalloc on WASI (GH-92732)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/support/os_helper.py2
-rw-r--r--Lib/test/test_builtin.py5
2 files changed, 5 insertions, 2 deletions
diff --git a/Lib/test/support/os_helper.py b/Lib/test/support/os_helper.py
index eee37ef..ed4ec15 100644
--- a/Lib/test/support/os_helper.py
+++ b/Lib/test/support/os_helper.py
@@ -50,7 +50,7 @@ if os.name == 'nt':
% (TESTFN_UNENCODABLE, sys.getfilesystemencoding()))
TESTFN_UNENCODABLE = None
# macOS and Emscripten deny unencodable filenames (invalid utf-8)
-elif sys.platform not in {'darwin', 'emscripten'}:
+elif sys.platform not in {'darwin', 'emscripten', 'wasi'}:
try:
# ascii and utf-8 cannot encode the byte 0xff
b'\xff'.decode(sys.getfilesystemencoding())
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py
index ba7a7e2..efa9459 100644
--- a/Lib/test/test_builtin.py
+++ b/Lib/test/test_builtin.py
@@ -393,7 +393,10 @@ class BuiltinTest(unittest.TestCase):
msg=f"source={source} mode={mode}")
- @unittest.skipIf(support.is_emscripten, "socket.accept is broken")
+ @unittest.skipIf(
+ support.is_emscripten or support.is_wasi,
+ "socket.accept is broken"
+ )
def test_compile_top_level_await(self):
"""Test whether code some top level await can be compiled.