parent
d61ed8c014
commit
1e67da155a
|
@ -58,7 +58,6 @@ class Pdb(pdb.Pdb):
|
||||||
|
|
||||||
def post_mortem(t):
|
def post_mortem(t):
|
||||||
# again, a copy of the version in pdb.py
|
# again, a copy of the version in pdb.py
|
||||||
t = outcome.excinfo._excinfo[2]
|
|
||||||
p = Pdb()
|
p = Pdb()
|
||||||
p.reset()
|
p.reset()
|
||||||
while t.tb_next is not None:
|
while t.tb_next is not None:
|
||||||
|
|
|
@ -99,7 +99,7 @@ class TerminalSession(Session):
|
||||||
print "dispatching to ppdb", colitem
|
print "dispatching to ppdb", colitem
|
||||||
self.repr_failure(colitem, outcome)
|
self.repr_failure(colitem, outcome)
|
||||||
self.out.write('\n%s\n' % (outcome.excinfo.exconly(),))
|
self.out.write('\n%s\n' % (outcome.excinfo.exconly(),))
|
||||||
py.__.test.custompdb.post_mortem(excinfo._excinfo[2])
|
py.__.test.custompdb.post_mortem(outcome.excinfo._excinfo[2])
|
||||||
if isinstance(colitem, py.test.collect.Module):
|
if isinstance(colitem, py.test.collect.Module):
|
||||||
resultstring = self.repr_progress_module_result(colitem, outcome)
|
resultstring = self.repr_progress_module_result(colitem, outcome)
|
||||||
if resultstring:
|
if resultstring:
|
||||||
|
|
Loading…
Reference in New Issue