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

Function interrupt

tests/core/test_interruption.py:99–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97 calls: Final[count[int]] = count(1)
98
99 def interrupt() -> None: # pragma: no cover # runs inside the profile hook, which coverage does not trace
100 if next(calls) == target:
101 raise KeyboardInterrupt
102
103 sys.setprofile(_interrupt_hook(lock, callee, interrupt))
104 try:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected