Give all the necessary traceback info when using PuDB

This commit is contained in:
Aaron Meurer
2013-07-25 19:00:02 -05:00
parent a0d8b4b508
commit 783f71501e
+3
View File
@@ -112,6 +112,9 @@ class TestCase(object):
if debugger: if debugger:
einfo = sys.exc_info() einfo = sys.exc_info()
pdb = __import__(debugger) pdb = __import__(debugger)
if debugger == 'pudb':
pdb.post_mortem(einfo[2], einfo[0], einfo[1])
else:
pdb.post_mortem(einfo[2]) pdb.post_mortem(einfo[2])
exit(1) exit(1)