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

Function test_write_lock_custom_blocking

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

Source from the content-addressed store, hash-verified

141
142
143def test_write_lock_custom_blocking(lock_file: str) -> None:
144 lock = ReadWriteLock(lock_file, is_singleton=False)
145 with lock.write_lock(blocking=True):
146 assert lock._hold.mode == "write"
147
148
149def test_read_lock_context_manager_overrides_defaults(lock_file: str) -> None:

Callers

nothing calls this directly

Calls 2

write_lockMethod · 0.95
ReadWriteLockClass · 0.90

Tested by

no test coverage detected