From ed9004fc469bcc701fc2208861cfef758c618e05 Mon Sep 17 00:00:00 2001 From: fijal Date: Thu, 25 Jan 2007 20:59:17 +0100 Subject: [PATCH] [svn r37354] Move tracing a bit down (performance, no change in behaviour) --HG-- branch : trunk --- py/test/rsession/local.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/py/test/rsession/local.py b/py/test/rsession/local.py index 52ac586b0..4e9087ed3 100644 --- a/py/test/rsession/local.py +++ b/py/test/rsession/local.py @@ -37,11 +37,16 @@ def benchmark_runner(item, session, reporter): raise NotImplementedError() def apigen_runner(item, session, reporter): + r = RunExecutor(item, reporter=reporter, config=session.config) + startcapture(session) + #retval = plain_runner(item, session, reporter) r = RunExecutor(item, reporter=reporter, config=session.config) session.tracer.start_tracing() - retval = plain_runner(item, session, reporter) + outcome = r.execute() session.tracer.end_tracing() - return retval + outcome = ReprOutcome(outcome.make_repr(session.config.option.tbstyle)) + outcome.stdout, outcome.stderr = finishcapture(session) + return outcome def exec_runner(item, session, reporter): raise NotImplementedError()