(_signum: int, _frame: FrameType | None)
| 245 | with closing(ReadWriteLock(lock_file)) as waiter, closing(ReadWriteLock(lock_file, is_singleton=False)) as peer: |
| 246 | |
| 247 | def stop(_signum: int, _frame: FrameType | None) -> None: |
| 248 | with pytest.raises(Timeout): |
| 249 | peer.acquire_read(blocking=False) |
| 250 | raise KeyboardInterrupt |
| 251 | |
| 252 | signal.signal(signal.SIGTERM, stop) |
| 253 | with pytest.raises(KeyboardInterrupt): |
nothing calls this directly
no test coverage detected