'Test with changed sys.excepthook.'

def test_changed(self):

    sys.excepthook = excepthook
    with utils.disabled_excepthook():
        assert (sys.excepthook is not excepthook)
        sys.excepthook = excepthook_2
    assert (sys.excepthook is excepthook_2)
