Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ tempdir_as_cwd
Function
tempdir_as_cwd
Lib/test/test_importlib/fixtures.py:46–50 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
44
45
@contextlib.contextmanager
46
def
tempdir_as_cwd():
47
with
tempdir()
as
tmp:
48
with
save_cwd():
49
os.chdir(str(tmp))
50
yield
tmp
51
52
53
@contextlib.contextmanager
Callers
nothing calls this directly
Calls
3
tempdir
Function · 0.85
save_cwd
Function · 0.85
str
Function · 0.85
Tested by
no test coverage detected