MCPcopy
hub / github.com/pytest-dev/pytest / pytest_configure

Function pytest_configure

src/_pytest/threadexception.py:132–137  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

130
131
132def 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)

Callers

nothing calls this directly

Calls 1

add_cleanupMethod · 0.80

Tested by

no test coverage detected