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

Method pytest_unconfigure

testing/test_pythonpath.py:98–102  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

96 class Plugin:
97 @pytest.hookimpl(hookwrapper=True, tryfirst=True)
98 def pytest_unconfigure(self) -> Generator[None, None, None]:
99 nonlocal before, after
100 before = sys.path.copy()
101 yield
102 after = sys.path.copy()
103
104 result = pytester.runpytest_inprocess(plugins=[Plugin()])
105 assert result.ret == 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected