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

Function cancel_after_two

tests/test_filelock.py:1170–1173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1168 call_count = 0
1169
1170 def cancel_after_two() -> bool:
1171 nonlocal call_count
1172 call_count += 1
1173 return call_count >= 2
1174
1175 mocker.patch("filelock._api.time.sleep")
1176 with pytest.raises(Timeout):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected