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

Function pytest_runtest_setup

src/_pytest/skipping.py:248–255  ·  view source on GitHub ↗
(item: Item)

Source from the content-addressed store, hash-verified

246
247@hookimpl(tryfirst=True)
248def pytest_runtest_setup(item: Item) -> None:
249 skipped = evaluate_skip_marks(item)
250 if skipped:
251 raise skip.Exception(skipped.reason, _use_item_location=True)
252
253 item.stash[xfailed_key] = xfailed = evaluate_xfail_marks(item)
254 if xfailed and not item.config.option.runxfail and not xfailed.run:
255 xfail("[NOTRUN] " + xfailed.reason)
256
257
258@hookimpl(wrapper=True)

Callers 2

Calls 2

evaluate_skip_marksFunction · 0.85
evaluate_xfail_marksFunction · 0.85

Tested by 2