fix issue160 a failing setup of an xfail-marked tests should

be reported as xfail (not xpass)
This commit is contained in:
holger krekel
2012-06-19 23:48:39 +02:00
parent 672919a8e2
commit 1bbe1d086c
4 changed files with 20 additions and 1 deletions

View File

@@ -110,6 +110,7 @@ class MarkEvaluator:
return expl
@pytest.mark.tryfirst
def pytest_runtest_setup(item):
if not isinstance(item, pytest.Function):
return