mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
[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>
This commit is contained in:
parent
52e6596fb5
commit
8f937976bc
14 changed files with 49 additions and 24 deletions
|
@ -16,7 +16,7 @@ import sys
|
|||
import tempfile
|
||||
from test.support import (captured_stdout, captured_stderr, requires_zlib,
|
||||
skip_if_broken_multiprocessing_synchronize, verbose,
|
||||
requires_subprocess, is_emscripten)
|
||||
requires_subprocess, is_emscripten, is_wasi)
|
||||
from test.support.os_helper import (can_symlink, EnvironmentVarGuard, rmtree)
|
||||
import unittest
|
||||
import venv
|
||||
|
@ -34,8 +34,8 @@ requireVenvCreate = unittest.skipUnless(
|
|||
or sys._base_executable != sys.executable,
|
||||
'cannot run venv.create from within a venv on this platform')
|
||||
|
||||
if is_emscripten:
|
||||
raise unittest.SkipTest("venv is not available on Emscripten.")
|
||||
if is_emscripten or is_wasi:
|
||||
raise unittest.SkipTest("venv is not available on Emscripten/WASI.")
|
||||
|
||||
@requires_subprocess()
|
||||
def check_output(cmd, encoding=None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue