| 1205 | self.hook.pytest_configure.call_historic(kwargs=dict(config=self)) |
| 1206 | |
| 1207 | def _ensure_unconfigure(self) -> None: |
| 1208 | try: |
| 1209 | if self._configured: |
| 1210 | self._configured = False |
| 1211 | try: |
| 1212 | self.hook.pytest_unconfigure(config=self) |
| 1213 | finally: |
| 1214 | self.hook.pytest_configure._call_history = [] |
| 1215 | finally: |
| 1216 | try: |
| 1217 | self._cleanup_stack.close() |
| 1218 | finally: |
| 1219 | self._cleanup_stack = contextlib.ExitStack() |
| 1220 | |
| 1221 | def get_terminal_writer(self) -> TerminalWriter: |
| 1222 | terminalreporter: TerminalReporter | None = self.pluginmanager.get_plugin( |