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

Function pytest_runtest_teardown

src/_pytest/runner.py:197–200  ·  view source on GitHub ↗
(item: Item, nextitem: Item | None)

Source from the content-addressed store, hash-verified

195
196
197def pytest_runtest_teardown(item: Item, nextitem: Item | None) -> None:
198 _update_current_test_var(item, "teardown")
199 item.session._setupstate.teardown_exact(nextitem)
200 _update_current_test_var(item, None)
201
202
203def _update_current_test_var(

Callers

nothing calls this directly

Calls 2

_update_current_test_varFunction · 0.85
teardown_exactMethod · 0.80

Tested by

no test coverage detected