@pytest.hookimpl(tryfirst=True)
def pytest_runtest_makereport(item, call):
    if isinstance(item, TestCaseFunction):
        if item._excinfo:
            call.excinfo = item._excinfo.pop(0)
            try:
                del call.result
            except __HOLE__:
                pass

# twisted trial support
dataset/ETHPy150Open pytest-dev/pytest/_pytest/unittest.py/pytest_runtest_makereport