MCPcopy Create free account
hub / github.com/tox-dev/filelock / stop

Function stop

tests/sqlite/test_lock_contention.py:247–250  ·  view source on GitHub ↗
(_signum: int, _frame: FrameType | None)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 1

acquire_readMethod · 0.45

Tested by

no test coverage detected