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

Function refused

tests/sqlite/test_lock.py:63–66  ·  view source on GitHub ↗
(_database: str, **_kwargs: float | type[sqlite3.Connection])

Source from the content-addressed store, hash-verified

61 now += seconds
62
63 def refused(_database: str, **_kwargs: float | type[sqlite3.Connection]) -> None:
64 nonlocal now
65 now += 0.25
66 raise BlockingIOError(EWOULDBLOCK, "leased database")
67
68 mocker.patch.object(threading, "active_count", autospec=True, return_value=1)
69 clock = mocker.patch("filelock._sqlite._lock.time", autospec=True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected