| 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 |
no outgoing calls