[svn r37354] Move tracing a bit down (performance, no change in behaviour)

--HG--
branch : trunk
This commit is contained in:
fijal 2007-01-25 20:59:17 +01:00
parent 0a9399329f
commit ed9004fc46
1 changed files with 7 additions and 2 deletions

View File

@ -37,11 +37,16 @@ def benchmark_runner(item, session, reporter):
raise NotImplementedError() raise NotImplementedError()
def apigen_runner(item, session, reporter): 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) r = RunExecutor(item, reporter=reporter, config=session.config)
session.tracer.start_tracing() session.tracer.start_tracing()
retval = plain_runner(item, session, reporter) outcome = r.execute()
session.tracer.end_tracing() 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): def exec_runner(item, session, reporter):
raise NotImplementedError() raise NotImplementedError()