Files
pytest2/py/test/plugin/pytest_pdb.py
hpk b2077ed2ec [svn r63630] some more code to prepare for substituting the
fixture/runtest code, using more plugins.

--HG--
branch : trunk
2009-04-04 22:19:18 +02:00

10 lines
335 B
Python

from py.__.test.custompdb import post_mortem
class PdbPlugin:
def pytest_item_runtest_finished(self, item, excinfo, outerr):
if excinfo and item.config.option.usepdb:
tw = py.io.TerminalWriter()
repr = excinfo.getrepr()
repr.toterminal(tw)
post_mortem(excinfo._excinfo[2])