def METHOD_NAME():
    def _handler(*_):
        raise TimeoutError("from handler")
    with signal_handler(signal.SIGINT, lambda *_: 0), signal_handler(signal.SIGTERM, _handler):
        timeout = 1
        with Timer() as t:
            with pytest.raises(TimeoutError, match=r"from handler"):
                with InterruptTimeout(timeout_secs=timeout,
                                      interruptions=[
                                          dict(sig=signal.SIGINT),
                                          dict(sig=signal.SIGTERM)
                                      ],
                                      wait_retry_secs=0.3):
                    for i in range(100):
                        time.sleep(.1)
        assert t.duration - timeout < 1
        assert 10 < i < 15