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

Class Plugin

testing/test_pythonpath.py:96–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 after: Optional[List[str]] = None
95
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 1

test_clean_upFunction · 0.70

Calls

no outgoing calls

Tested by 1

test_clean_upFunction · 0.56