From a0d8b4b5080cd5595d56dae04e6eecce83da74c9 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Thu, 25 Jul 2013 18:41:53 -0500 Subject: [PATCH 1/3] PuDB's post_mortem is now consistant with pdb (https://github.com/inducer/pudb/pull/71) --- sith.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sith.py b/sith.py index 42805c6f..7f3c9e0e 100755 --- a/sith.py +++ b/sith.py @@ -112,7 +112,7 @@ class TestCase(object): if debugger: einfo = sys.exc_info() pdb = __import__(debugger) - pdb.post_mortem(einfo if debugger == 'pudb' else einfo[2]) + pdb.post_mortem(einfo[2]) exit(1) def show(self): From 783f71501e1dc0da5607540cc992663c31488207 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Thu, 25 Jul 2013 19:00:02 -0500 Subject: [PATCH 2/3] 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): From 9c4c36ce6a328bfcc46c83f5df46c96e6df6f119 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Fri, 26 Jul 2013 09:34:33 -0500 Subject: [PATCH 3/3] Add myself to AUTHORS --- AUTHORS.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/AUTHORS.txt b/AUTHORS.txt index fd56fb22..34cd212b 100644 --- a/AUTHORS.txt +++ b/AUTHORS.txt @@ -16,3 +16,4 @@ Yasha Borevich (@jjay) Aaron Griffin andviro (@andviro) Mike Gilbert (@floppym) +Aaron Meurer (@asmeurer)