MCPcopy 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
46def 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

tempdirFunction · 0.85
save_cwdFunction · 0.85
strFunction · 0.85

Tested by

no test coverage detected