Issue 1316 - longrepr is a string when pytrace=False (#7100)

This commit is contained in:
Katarzyna Król
2020-05-30 13:10:58 +02:00
committed by GitHub
parent e3190604ef
commit 94c7b8b47c
6 changed files with 44 additions and 20 deletions

View File

@@ -194,7 +194,7 @@ class TestXFail:
assert len(reports) == 3
callreport = reports[1]
assert callreport.failed
assert callreport.longrepr == "[XPASS(strict)] nope"
assert str(callreport.longrepr) == "[XPASS(strict)] nope"
assert not hasattr(callreport, "wasxfail")
def test_xfail_run_anyway(self, testdir):