Closed
Description
When an xfail marked test passes(xpass), the report.outcome value is 'failed'. Since the xfail test passed shouldnt the outcome of the test be 'passed' ?
Running pytest (2.9.1), py (1.4.31) on Mac OSX
# conftest.py
def pytest_runtest_logreport(report):
print "When: {} Outcome: {}".format(report.when, report.outcome)
# test_sub.py
@pytest.mark.xfail
def test_xpass():
pass
Snippet of the console output
When: setup Outcome: passed
XPASSWhen: call Outcome: failed
When: teardown Outcome: passed
Metadata
Metadata
Assignees
Labels
No labels