diff --git a/py/test/custompdb.py b/py/test/custompdb.py index f449e471b..0a4656384 100644 --- a/py/test/custompdb.py +++ b/py/test/custompdb.py @@ -58,7 +58,6 @@ class Pdb(pdb.Pdb): def post_mortem(t): # again, a copy of the version in pdb.py - t = outcome.excinfo._excinfo[2] p = Pdb() p.reset() while t.tb_next is not None: diff --git a/py/test/terminal/terminal.py b/py/test/terminal/terminal.py index 6edb19c94..1af784374 100644 --- a/py/test/terminal/terminal.py +++ b/py/test/terminal/terminal.py @@ -99,7 +99,7 @@ class TerminalSession(Session): print "dispatching to ppdb", colitem self.repr_failure(colitem, outcome) 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): resultstring = self.repr_progress_module_result(colitem, outcome) if resultstring: