def pytest_exception_interact(node, call, report):
    """
    Set a different exit code on uncaught exceptions.
    """
    global unhandled_exit
    exctype, value, traceback = call.excinfo._excinfo

    if exctype == AssertionError:
        return report
    unhandled_exit = node.config.getoption('--unhandled-exc-exit-code')