(signum, frame)
| 39 | |
| 40 | else: |
| 41 | def timeout_handler(signum, frame): |
| 42 | raise TimeoutException("Code execution timed out") |
| 43 | |
| 44 | # Set the timeout handler |
| 45 | original_handler = signal.signal(signal.SIGALRM, timeout_handler) |
nothing calls this directly
no test coverage detected