(item: Item)
| 246 | |
| 247 | @hookimpl(tryfirst=True) |
| 248 | def 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) |