MCPcopy Index your code
hub / github.com/ipython/ipython / test_temporary_working_directory

Function test_temporary_working_directory

tests/test_tempdir.py:24–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23
24def test_temporary_working_directory():
25 with TemporaryWorkingDirectory() as directory:
26 directory_path = Path(directory).resolve()
27 assert directory_path.exists()
28 assert Path.cwd().resolve() == directory_path
29 assert not directory_path.exists()
30 assert Path.cwd().resolve() != directory_path

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…