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

Function tempdir

Lib/test/test_importlib/fixtures.py:28–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27@contextlib.contextmanager
28def tempdir():
29 tmpdir = tempfile.mkdtemp()
30 try:
31 yield pathlib.Path(tmpdir)
32 finally:
33 shutil.rmtree(tmpdir)
34
35
36@contextlib.contextmanager

Callers 2

tempdir_as_cwdFunction · 0.85
setUpMethod · 0.85

Calls 1

mkdtempMethod · 0.80

Tested by

no test coverage detected