'Restore sys.excepthook and sys.__excepthook__ after tests.'

@pytest.fixture(autouse=True)
def restore_excepthook(self):

    old_excepthook = sys.excepthook
    old_dunder_excepthook = sys.__excepthook__
    (yield)
    sys.excepthook = old_excepthook
    sys.__excepthook__ = old_dunder_excepthook
