(config: Config)
| 130 | |
| 131 | |
| 132 | def pytest_configure(config: Config) -> None: |
| 133 | prev_hook = threading.excepthook |
| 134 | deque: collections.deque[ThreadExceptionMeta | BaseException] = collections.deque() |
| 135 | config.stash[thread_exceptions] = deque |
| 136 | config.add_cleanup(functools.partial(cleanup, config=config, prev_hook=prev_hook)) |
| 137 | threading.excepthook = functools.partial(thread_exception_hook, append=deque.append) |
| 138 | |
| 139 | |
| 140 | @pytest.hookimpl(trylast=True) |
nothing calls this directly
no test coverage detected