* make pytest_eventlog.py work again by adding a hack to the registry, rename * disable resultdb hook plugin, it needs merging with resultlog * add some docstrings, streamline bits --HG-- branch : trunk
10 lines
326 B
Python
10 lines
326 B
Python
""" XXX should be used sometime. """
|
|
from py.__.test.custompdb import post_mortem
|
|
|
|
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])
|