diff options
author | 2013-03-03 13:27:14 +0100 | |
---|---|---|
committer | 2013-03-03 13:27:14 +0100 | |
commit | 5eaac85f840d94b97434cba978793e745ce8036a (patch) | |
tree | f40e3def245a52da7bb73bd3abb98cf6a0ae47ce /_pytest | |
parent | merge (diff) | |
download | pypy-5eaac85f840d94b97434cba978793e745ce8036a.tar.gz pypy-5eaac85f840d94b97434cba978793e745ce8036a.tar.bz2 pypy-5eaac85f840d94b97434cba978793e745ce8036a.zip |
fix min_max
Diffstat (limited to '_pytest')
-rw-r--r-- | _pytest/pdb.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/_pytest/pdb.py b/_pytest/pdb.py index 7516b14fbb..4e6ae633c3 100644 --- a/_pytest/pdb.py +++ b/_pytest/pdb.py @@ -72,10 +72,10 @@ class PdbInvoke: tw.sep(">", "entering PDB") # A doctest.UnexpectedException is not useful for post_mortem. # Use the underlying exception instead: - if isinstance(call.excinfo.value, py.std.doctest.UnexpectedException): - tb = call.excinfo.value.exc_info[2] - else: - tb = call.excinfo._excinfo[2] + #if isinstance(call.excinfo.value, py.std.doctest.UnexpectedException): + # tb = call.excinfo.value.exc_info[2] + #else: + tb = call.excinfo._excinfo[2] post_mortem(tb) rep._pdbshown = True return rep |