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/distutils/tests/test_install_lib.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/distutils/tests/test_install_lib.py')
-rw-r--r-- | Lib/distutils/tests/test_install_lib.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/distutils/tests/test_install_lib.py b/Lib/distutils/tests/test_install_lib.py index 652653f..f840d1a 100644 --- a/Lib/distutils/tests/test_install_lib.py +++ b/Lib/distutils/tests/test_install_lib.py @@ -8,7 +8,7 @@ from distutils.command.install_lib import install_lib from distutils.extension import Extension from distutils.tests import support from distutils.errors import DistutilsOptionError -from test.support import run_unittest +from test.support import run_unittest, requires_subprocess class InstallLibTestCase(support.TempdirManager, @@ -35,6 +35,7 @@ class InstallLibTestCase(support.TempdirManager, self.assertEqual(cmd.optimize, 2) @unittest.skipIf(sys.dont_write_bytecode, 'byte-compile disabled') + @requires_subprocess() def test_byte_compile(self): project_dir, dist = self.create_dist() os.chdir(project_dir) @@ -90,6 +91,7 @@ class InstallLibTestCase(support.TempdirManager, inputs = cmd.get_inputs() self.assertEqual(len(inputs), 2, inputs) + @requires_subprocess() def test_dont_write_bytecode(self): # makes sure byte_compile is not used dist = self.create_dist()[1] |