MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_isolation

Method test_isolation

Lib/test/test_venv.py:440–448  ·  view source on GitHub ↗

Test isolation from system site-packages

(self)

Source from the content-addressed store, hash-verified

438 self.assertTrue(os.path.exists(fn), 'File %r should exist.' % fn)
439
440 def test_isolation(self):
441 """
442 Test isolation from system site-packages
443 """
444 for ssp, s in ((True, 'true'), (False, 'false')):
445 builder = venv.EnvBuilder(clear=True, system_site_packages=ssp)
446 builder.create(self.env_dir)
447 data = self.get_text_file_contents('pyvenv.cfg')
448 self.assertIn('include-system-site-packages = %s\n' % s, data)
449
450 @unittest.skipUnless(can_symlink(), 'Needs symlinks')
451 def test_symlinking(self):

Callers

nothing calls this directly

Calls 3

assertInMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected