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

Function test_read_lock_custom_timeout

tests/sqlite/test_transactions.py:137–140  ·  view source on GitHub ↗
(lock_file: str)

Source from the content-addressed store, hash-verified

135
136
137def test_read_lock_custom_timeout(lock_file: str) -> None:
138 lock = ReadWriteLock(lock_file, is_singleton=False)
139 with lock.read_lock(timeout=5.0):
140 assert lock._hold.mode == "read"
141
142
143def test_write_lock_custom_blocking(lock_file: str) -> None:

Callers

nothing calls this directly

Calls 2

read_lockMethod · 0.95
ReadWriteLockClass · 0.90

Tested by

no test coverage detected