*Not documented*
def repr_failure_tblong(self, item, excinfo, traceback):
origin: test.TerminalSession
where:
function source:
def repr_failure_tblong(self, item, excinfo, traceback):
if not self.config.option.nomagic and excinfo.errisinstance(RuntimeError):
recursionindex = traceback.recursionindex()
else:
recursionindex = None
last = traceback[-1]
first = traceback[0]
for index, entry in py.builtin.enumerate(traceback):
if entry == first:
if item:
self.repr_failure_info(item, entry)
self.out.line()
else:
self.out.line("")
source = self.getentrysource(entry)
firstsourceline = entry.getfirstlinesource()
marker_location = entry.lineno - firstsourceline
if entry == last:
self.repr_source(source, 'E', marker_location)
self.repr_failure_explanation(excinfo, source)
else:
self.repr_source(source, '>', marker_location)
self.out.line("")
self.out.line("[%s:%d]" %(entry.frame.code.path, entry.lineno+1))
self.repr_locals(entry)
# trailing info
if entry == last:
#if item:
# self.repr_failure_info(item, entry)
self.repr_out_err(item)
self.out.sep("_")
else:
self.out.sep("_ ")
if index == recursionindex:
self.out.line("Recursion detected (same locals & position)")
self.out.sep("!")
break
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.TerminalSession.repr_failure_tblong.0
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.TerminalSession.repr_failure_tblong.1
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.TerminalSession.repr_failure_tblong.2
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.TerminalSession.repr_failure_tblong.3
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.TerminalSession.repr_failure_tblong.4
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.TerminalSession.repr_failure_tblong.5
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.TerminalSession.repr_failure_tblong.6
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.TerminalSession.repr_failure_tblong.7
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.TerminalSession.repr_failure_tblong.8
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.TerminalSession.repr_failure_tblong.9
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.TerminalSession.repr_failure_tblong.10
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.TerminalSession.repr_failure_tblong.11
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.TerminalSession.repr_failure_tblong.12
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.TerminalSession.repr_failure_tblong.13
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py