mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-40280: Skip subprocess-based tests on wasm32-emscripten (GH-30615)
This commit is contained in:
parent
e1abffca45
commit
8464fbc42e
42 changed files with 139 additions and 23 deletions
|
@ -694,6 +694,7 @@ class SysModuleTest(unittest.TestCase):
|
|||
def test_clear_type_cache(self):
|
||||
sys._clear_type_cache()
|
||||
|
||||
@support.requires_subprocess()
|
||||
def test_ioencoding(self):
|
||||
env = dict(os.environ)
|
||||
|
||||
|
@ -741,6 +742,7 @@ class SysModuleTest(unittest.TestCase):
|
|||
'requires OS support of non-ASCII encodings')
|
||||
@unittest.skipUnless(sys.getfilesystemencoding() == locale.getpreferredencoding(False),
|
||||
'requires FS encoding to match locale')
|
||||
@support.requires_subprocess()
|
||||
def test_ioencoding_nonascii(self):
|
||||
env = dict(os.environ)
|
||||
|
||||
|
@ -753,6 +755,7 @@ class SysModuleTest(unittest.TestCase):
|
|||
|
||||
@unittest.skipIf(sys.base_prefix != sys.prefix,
|
||||
'Test is not venv-compatible')
|
||||
@support.requires_subprocess()
|
||||
def test_executable(self):
|
||||
# sys.executable should be absolute
|
||||
self.assertEqual(os.path.abspath(sys.executable), sys.executable)
|
||||
|
@ -854,9 +857,11 @@ class SysModuleTest(unittest.TestCase):
|
|||
'stdout: surrogateescape\n'
|
||||
'stderr: backslashreplace\n')
|
||||
|
||||
@support.requires_subprocess()
|
||||
def test_c_locale_surrogateescape(self):
|
||||
self.check_locale_surrogateescape('C')
|
||||
|
||||
@support.requires_subprocess()
|
||||
def test_posix_locale_surrogateescape(self):
|
||||
self.check_locale_surrogateescape('POSIX')
|
||||
|
||||
|
@ -1005,6 +1010,7 @@ class SysModuleTest(unittest.TestCase):
|
|||
self.assertIsInstance(level, int)
|
||||
self.assertGreater(level, 0)
|
||||
|
||||
@support.requires_subprocess()
|
||||
def test_sys_tracebacklimit(self):
|
||||
code = """if 1:
|
||||
import sys
|
||||
|
@ -1051,6 +1057,7 @@ class SysModuleTest(unittest.TestCase):
|
|||
out = out.decode('ascii', 'replace').rstrip()
|
||||
self.assertEqual(out, 'mbcs replace')
|
||||
|
||||
@support.requires_subprocess()
|
||||
def test_orig_argv(self):
|
||||
code = textwrap.dedent('''
|
||||
import sys
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue