Fix failing test
This commit is contained in:
parent
04545f8a54
commit
eee24138b0
|
@ -155,9 +155,8 @@ def pytest_runtest_setup(item):
|
||||||
pytest.skip(eval_skipif.getexplanation())
|
pytest.skip(eval_skipif.getexplanation())
|
||||||
elif isinstance(item.keywords.get('skip'), MarkInfo):
|
elif isinstance(item.keywords.get('skip'), MarkInfo):
|
||||||
eval_skip = MarkEvaluator(item, 'skip')
|
eval_skip = MarkEvaluator(item, 'skip')
|
||||||
if eval_skip.istrue():
|
item._evalskip = eval_skip
|
||||||
item._evalskip = eval_skip
|
pytest.skip(eval_skip.getexplanation())
|
||||||
pytest.skip(eval_skip.getexplanation())
|
|
||||||
|
|
||||||
item._evalxfail = MarkEvaluator(item, 'xfail')
|
item._evalxfail = MarkEvaluator(item, 'xfail')
|
||||||
check_xfail_no_run(item)
|
check_xfail_no_run(item)
|
||||||
|
|
Loading…
Reference in New Issue