Merge pull request #273 from asmeurer/pudb

Pudb
This commit is contained in:
David Halter
2013-07-28 05:44:57 -07:00
2 changed files with 5 additions and 1 deletions

View File

@@ -16,3 +16,4 @@ Yasha Borevich (@jjay)
Aaron Griffin
andviro (@andviro)
Mike Gilbert (@floppym)
Aaron Meurer (@asmeurer)

View File

@@ -112,7 +112,10 @@ class TestCase(object):
if debugger:
einfo = sys.exc_info()
pdb = __import__(debugger)
pdb.post_mortem(einfo if debugger == 'pudb' else einfo[2])
if debugger == 'pudb':
pdb.post_mortem(einfo[2], einfo[0], einfo[1])
else:
pdb.post_mortem(einfo[2])
exit(1)
def show(self):