*Not documented*
def runtraced(self, colitem):
origin: test.Session
where:
function source:
def runtraced(self, colitem):
if self.shouldclose():
raise Exit, "received external close signal"
outcome = None
colitem.startcapture()
try:
self.start(colitem)
try:
try:
if colitem._stickyfailure:
raise colitem._stickyfailure
outcome = self.run(colitem)
except (KeyboardInterrupt, Exit):
raise
except colitem.Outcome, outcome:
if outcome.excinfo is None:
outcome.excinfo = py.code.ExceptionInfo()
except:
excinfo = py.code.ExceptionInfo()
outcome = colitem.Failed(excinfo=excinfo)
assert (outcome is None or
isinstance(outcome, (list, colitem.Outcome)))
finally:
self.finish(colitem, outcome)
if isinstance(outcome, colitem.Failed) and self.config.option.exitfirst:
py.test.exit("exit on first problem configured.", item=colitem)
finally:
colitem.finishcapture()