skipping: slight simplification

This commit is contained in:
Ran Benita 2020-07-13 23:17:39 +03:00
parent 7f7a36478a
commit 78f2dc08fa
1 changed files with 1 additions and 3 deletions

View File

@ -231,11 +231,9 @@ unexpectedsuccess_key = StoreKey[str]()
@hookimpl(tryfirst=True)
def pytest_runtest_setup(item: Item) -> None:
item._store[skipped_by_mark_key] = False
skipped = evaluate_skip_marks(item)
item._store[skipped_by_mark_key] = skipped is not None
if skipped:
item._store[skipped_by_mark_key] = True
skip(skipped.reason)
if not item.config.option.runxfail: