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

Method test_macos_env

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

Source from the content-addressed store, hash-verified

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

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