hande the trial todo class by using repr

This commit is contained in:
Ronny Pfannschmidt 2012-05-10 01:38:13 +02:00
parent 6dd8405aed
commit 6155e9139d
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ def pytest_runtest_makereport(__multicall__, item, call):
rep = __multicall__.execute()
if rep.when == "call":
# we need to translate into how py.test encodes xpass
rep.keywords['xfail'] = "reason: " + item._unexpectedsuccess
rep.keywords['xfail'] = "reason: " + repr(item._unexpectedsuccess)
rep.outcome = "failed"
return rep
if not (call.excinfo and