From ec076f5f8a89390717a395843f8d0d10455bb30f Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Tue, 15 Jan 2013 15:51:03 +0000 Subject: [PATCH] write console output to temporary folder in any case the test case fails, even if no traceback is raised --- lib/core/testing.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/core/testing.py b/lib/core/testing.py index e58822878..952b323ef 100644 --- a/lib/core/testing.py +++ b/lib/core/testing.py @@ -292,9 +292,10 @@ def runCase(switches=None, parse=None): if failedItem is not None: failedParseOn = console - elif retVal is False and tback is not None: + elif retVal is False: failedParseOn = console - failedTraceBack = tback + if tback: + failedTraceBack = tback return retVal