summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests/test_install_lib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/distutils/tests/test_install_lib.py')
-rw-r--r--Lib/distutils/tests/test_install_lib.py4
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]