(config: Config)
| 146 | |
| 147 | |
| 148 | def pytest_configure(config: Config) -> None: |
| 149 | prev_hook = sys.unraisablehook |
| 150 | deque: collections.deque[UnraisableMeta | BaseException] = collections.deque() |
| 151 | config.stash[unraisable_exceptions] = deque |
| 152 | config.add_cleanup(functools.partial(cleanup, config=config, prev_hook=prev_hook)) |
| 153 | sys.unraisablehook = functools.partial(unraisable_hook, append=deque.append) |
| 154 | |
| 155 | |
| 156 | def pytest_unconfigure(config: Config) -> None: |
nothing calls this directly
no test coverage detected