MCPcopy Index your code
hub / github.com/python/cpython / test_macos_env

Method test_macos_env

Lib/test/test_venv.py:661–668  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

659
660 @unittest.skipUnless(sys.platform == 'darwin', 'only relevant on macOS')
661 def test_macos_env(self):
662 rmtree(self.env_dir)
663 builder = venv.EnvBuilder()
664 builder.create(self.env_dir)
665
666 out, err = check_output([self.envpy(real_env_dir=True), '-c',
667 'import os; print("__PYVENV_LAUNCHER__" in os.environ)'])
668 self.assertEqual(out.strip(), 'False'.encode())
669
670 def test_pathsep_error(self):
671 """

Callers

nothing calls this directly

Calls 7

rmtreeFunction · 0.90
envpyMethod · 0.80
check_outputFunction · 0.70
createMethod · 0.45
assertEqualMethod · 0.45
stripMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected