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

Method temporary_directory

Lib/test/test_compileall.py:999–1003  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

997
998 @contextlib.contextmanager
999 def temporary_directory(self):
1000 with tempfile.TemporaryDirectory() as path:
1001 self.path = path
1002 yield path
1003 self.path = None
1004
1005 def make_script(self, code, name="script"):
1006 return script_helper.make_script(self.path, name, code)

Callers 7

test_bad_argsMethod · 0.95
test_disabledMethod · 0.95
test_hardlinkMethod · 0.95
test_only_two_levelsMethod · 0.95
test_recompilationMethod · 0.95
test_importMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected