Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
28
def
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_cwd
Function · 0.85
setUp
Method · 0.85
Calls
1
mkdtemp
Method · 0.80
Tested by
no test coverage detected