fix #128 show tracebacks for all failures and errors that haven't beed PDB-debugged

This commit is contained in:
holger krekel
2010-11-23 16:10:47 +01:00
parent 695bffc83d
commit 4fa7a2e8ce
7 changed files with 31 additions and 12 deletions

View File

@@ -42,10 +42,6 @@ def pytest_runtest_makereport():
pytestPDB.item = None
class PdbInvoke:
def pytest_sessionfinish(self, session):
# don't display failures again at the end
session.config.option.tbstyle = "no"
@pytest.mark.tryfirst
def pytest_runtest_makereport(self, item, call, __multicall__):
if not call.excinfo or \
@@ -62,6 +58,7 @@ class PdbInvoke:
rep.toterminal(tw)
tw.sep(">", "entering PDB")
post_mortem(call.excinfo._excinfo[2])
rep._pdbshown = True
return rep
def post_mortem(t):