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

Method setUp

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

Source from the content-addressed store, hash-verified

70 maxDiff = 80 * 50
71
72 def setUp(self):
73 self.env_dir = os.path.realpath(tempfile.mkdtemp())
74 if os.name == 'nt':
75 self.bindir = 'Scripts'
76 self.lib = ('Lib',)
77 self.include = 'Include'
78 else:
79 self.bindir = 'bin'
80 self.lib = ('lib', f'python{sysconfig._get_python_version_abi()}')
81 self.include = 'include'
82 executable = sys._base_executable
83 self.exe = os.path.split(executable)[-1]
84 if (sys.platform == 'win32'
85 and os.path.lexists(executable)
86 and not os.path.exists(executable)):
87 self.cannot_link_exe = True
88 else:
89 self.cannot_link_exe = False
90
91 def tearDown(self):
92 rmtree(self.env_dir)

Callers

nothing calls this directly

Calls 5

realpathMethod · 0.80
mkdtempMethod · 0.80
splitMethod · 0.45
lexistsMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected