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

Function pytest_collection

src/_pytest/warnings.py:94–99  ·  view source on GitHub ↗
(session: Session)

Source from the content-addressed store, hash-verified

92
93@pytest.hookimpl(wrapper=True, tryfirst=True)
94def pytest_collection(session: Session) -> Generator[None, object, object]:
95 config = session.config
96 with catch_warnings_for_item(
97 config=config, ihook=config.hook, when="collect", item=None
98 ):
99 return (yield)
100
101
102@pytest.hookimpl(wrapper=True)

Callers

nothing calls this directly

Calls 1

catch_warnings_for_itemFunction · 0.85

Tested by

no test coverage detected