2009-05-21 05:12:37 +08:00
|
|
|
""" XXX should be used sometime. """
|
2009-04-05 04:19:18 +08:00
|
|
|
from py.__.test.custompdb import post_mortem
|
|
|
|
|
2009-05-19 05:26:16 +08:00
|
|
|
def pytest_item_runtest_finished(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])
|