diff options
author | Christian Heimes <christian@python.org> | 2022-01-25 07:09:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-25 07:09:06 (GMT) |
commit | 8464fbc42ecc9ce504faac499711dcdc6eedef16 (patch) | |
tree | 1992e76c83da4720bc1dbc95901a417e0a4781e3 /Lib/test/test_sys.py | |
parent | e1abffca45b60729c460e3e2ad50c8c1946cfd4e (diff) | |
download | cpython-8464fbc42ecc9ce504faac499711dcdc6eedef16.zip cpython-8464fbc42ecc9ce504faac499711dcdc6eedef16.tar.gz cpython-8464fbc42ecc9ce504faac499711dcdc6eedef16.tar.bz2 |
bpo-40280: Skip subprocess-based tests on wasm32-emscripten (GH-30615)
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r-- | Lib/test/test_sys.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index f6da57f..41c4618 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -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 |