Add a function to be called when the config object gets out of use (usually coinciding with pytest_unconfigure).
(self, func: Callable[[], None])
| 1194 | return self._inipath |
| 1195 | |
| 1196 | def add_cleanup(self, func: Callable[[], None]) -> None: |
| 1197 | """Add a function to be called when the config object gets out of |
| 1198 | use (usually coinciding with pytest_unconfigure). |
| 1199 | """ |
| 1200 | self._cleanup_stack.callback(func) |
| 1201 | |
| 1202 | def _do_configure(self) -> None: |
| 1203 | assert not self._configured |
no outgoing calls
no test coverage detected