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

Method create_temp_dir

Lib/test/test_interpreters/test_lifecycle.py:68–73  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66 print(msg)
67
68 def create_temp_dir(self):
69 import tempfile
70 tmp = tempfile.mkdtemp(prefix='test_interpreters_')
71 tmp = os.path.realpath(tmp)
72 self.addCleanup(os_helper.rmtree, tmp)
73 return tmp
74
75 def write_script(self, *path, text):
76 filename = os.path.join(*path)

Callers 1

test_sys_path_0Method · 0.95

Calls 3

mkdtempMethod · 0.80
addCleanupMethod · 0.80
realpathMethod · 0.45

Tested by

no test coverage detected