From 783f71501e1dc0da5607540cc992663c31488207 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Thu, 25 Jul 2013 19:00:02 -0500 Subject: [PATCH] Give all the necessary traceback info when using PuDB --- sith.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sith.py b/sith.py index 7f3c9e0e..a27197f8 100755 --- a/sith.py +++ b/sith.py @@ -112,7 +112,10 @@ class TestCase(object): if debugger: einfo = sys.exc_info() pdb = __import__(debugger) - pdb.post_mortem(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):