MCPcopy Create free account
hub / github.com/pytest-dev/pytest / pytest_unconfigure

Function pytest_unconfigure

src/_pytest/pythonpath.py:20–24  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

18
19@pytest.hookimpl(trylast=True)
20def pytest_unconfigure(config: Config) -> None:
21 for path in config.getini("pythonpath"):
22 path_str = str(path)
23 if path_str in sys.path:
24 sys.path.remove(path_str)

Callers

nothing calls this directly

Calls 1

getiniMethod · 0.45

Tested by

no test coverage detected