From 6155e9139d55c1c0c0b9155923770be54be65756 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Thu, 10 May 2012 01:38:13 +0200 Subject: [PATCH] hande the trial todo class by using repr --- _pytest/skipping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_pytest/skipping.py b/_pytest/skipping.py index 46b15617d..fe7a523bd 100644 --- a/_pytest/skipping.py +++ b/_pytest/skipping.py @@ -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