diff options
author | Christian Heimes <christian@python.org> | 2022-05-16 18:15:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-16 18:15:56 (GMT) |
commit | 8f937976bc3ce8ed14f9b7f933d4be550b0344d3 (patch) | |
tree | eb6a3f8119fa176bcce437f92276ffdc97822e7c /Lib/test/test_cmd_line_script.py | |
parent | 52e6596fb5f9371f3a1434dd7816e400862b4df8 (diff) | |
download | cpython-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_cmd_line_script.py')
-rw-r--r-- | Lib/test/test_cmd_line_script.py | 3 |
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 bb433dc..d783af6 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 |