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

Function pytest_runtest_protocol

src/_pytest/warnings.py:86–90  ·  view source on GitHub ↗
(item: Item)

Source from the content-addressed store, hash-verified

84
85@pytest.hookimpl(wrapper=True, tryfirst=True)
86def pytest_runtest_protocol(item: Item) -> Generator[None, object, object]:
87 with catch_warnings_for_item(
88 config=item.config, ihook=item.ihook, when="runtest", item=item
89 ):
90 return (yield)
91
92
93@pytest.hookimpl(wrapper=True, tryfirst=True)

Callers

nothing calls this directly

Calls 1

catch_warnings_for_itemFunction · 0.85

Tested by

no test coverage detected