This commit is contained in:
holger krekel
2013-04-02 10:29:51 +02:00
parent 53c4025774
commit a771352f01
4 changed files with 18 additions and 14 deletions

View File

@@ -88,7 +88,7 @@ class TestReportSerialization:
assert newrep.passed == rep.passed
assert newrep.failed == rep.failed
assert newrep.skipped == rep.skipped
if newrep.skipped and 'xfail' not in newrep.keywords:
if newrep.skipped and not hasattr(newrep, "wasxfail"):
assert len(newrep.longrepr) == 3
assert newrep.outcome == rep.outcome
assert newrep.when == rep.when