(signum, frame)
| 89 | @contextlib.contextmanager |
| 90 | def time_limit(seconds): |
| 91 | def signal_handler(signum, frame): |
| 92 | raise TimeoutException("Timed out!") |
| 93 | |
| 94 | signal.setitimer(signal.ITIMER_REAL, seconds) |
| 95 | signal.signal(signal.SIGALRM, signal_handler) |
nothing calls this directly
no test coverage detected
searching dependent graphs…