Commit c202075a authored by Jason R. Coombs's avatar Jason R. Coombs

Mark test_venv to be skipped when running under a virtualenv as virtualenv...

Mark test_venv to be skipped when running under a virtualenv as virtualenv monkey patches distutils.
parent 73ac8956
......@@ -83,6 +83,10 @@ class DistributionTestCase(support.LoggingSilencer,
self.assertIsInstance(cmd, test_dist)
self.assertEqual(cmd.sample_option, "sometext")
@unittest.skipIf(
'distutils' not in Distribution.parse_config_files.__module__,
'Cannot test when virtualenv has monkey-patched Distribution.',
)
def test_venv_install_options(self):
sys.argv.append("install")
self.addCleanup(os.unlink, TESTFN)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment