MCPcopy Create free account
hub / github.com/ipython/ipython / test_temporary_working_directory

Function test_temporary_working_directory

IPython/utils/tests/test_tempdir.py:23–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 assert not os.path.exists(name)
22
23def test_temporary_working_directory():
24 with TemporaryWorkingDirectory() as dir:
25 assert os.path.exists(dir)
26 assert os.path.realpath(os.curdir) == os.path.realpath(dir)
27 assert not os.path.exists(dir)
28 assert os.path.abspath(os.curdir) != dir

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected