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

Function work_path

IPython/conftest.py:26–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25@pytest.fixture(scope='session', autouse=True)
26def work_path():
27 path = pathlib.Path("./tmp-ipython-pytest-profiledir")
28 os.environ["IPYTHONDIR"] = str(path.absolute())
29 if path.exists():
30 raise ValueError('IPython dir temporary path already exists ! Did previous test run exit successfully ?')
31 path.mkdir()
32 yield
33 shutil.rmtree(str(path.resolve()))
34
35
36def nopage(strng, start=0, screen_lines=0, pager_cmd=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected