aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_cmd_line_script.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-05-16 16:02:37 +0200
committerGitHub <noreply@github.com>2022-05-16 16:02:37 +0200
commit9b50585e0225a80f9e383edacc7d73f1b5c8008b (patch)
tree5d3e7e1517143062aa8b7883202d5fe509244e7c /Lib/test/test_cmd_line_script.py
parentfa2b8b75eb2b8a0193d587e02b488a73579118fc (diff)
downloadcpython-9b50585e0225a80f9e383edacc7d73f1b5c8008b.tar.gz
cpython-9b50585e0225a80f9e383edacc7d73f1b5c8008b.zip
gh-90473: Skip tests that don't apply to Emscripten and WASI (GH-92846)
Diffstat (limited to 'Lib/test/test_cmd_line_script.py')
-rw-r--r--Lib/test/test_cmd_line_script.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_cmd_line_script.py b/Lib/test/test_cmd_line_script.py
index bb433dc1e73..d783af65839 100644
--- a/Lib/test/test_cmd_line_script.py
+++ b/Lib/test/test_cmd_line_script.py
@@ -558,8 +558,9 @@ class CmdLineTest(unittest.TestCase):
# Mac OS X denies the creation of a file with an invalid UTF-8 name.
# Windows allows creating a name with an arbitrary bytes name, but
# Python cannot a undecodable bytes argument to a subprocess.
+ # WASI does not permit invalid UTF-8 names.
if (os_helper.TESTFN_UNDECODABLE
- and sys.platform not in ('win32', 'darwin')):
+ and sys.platform not in ('win32', 'darwin', 'emscripten', 'wasi')):
name = os.fsdecode(os_helper.TESTFN_UNDECODABLE)
elif os_helper.TESTFN_NONASCII:
name = os_helper.TESTFN_NONASCII