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

Function test_release_force

tests/test_async_read_write.py:134–141  ·  view source on GitHub ↗
(lock_file: str)

Source from the content-addressed store, hash-verified

132
133@pytest.mark.asyncio
134async def test_release_force(lock_file: str) -> None:
135 lock = AsyncReadWriteLock(lock_file, is_singleton=False)
136 await lock.acquire_write()
137 await lock.acquire_write()
138 await lock.release(force=True)
139 with pytest.raises(RuntimeError, match="not held"):
140 await lock.release()
141 await lock.close()
142
143
144@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 4

acquire_writeMethod · 0.95
releaseMethod · 0.95
closeMethod · 0.95
AsyncReadWriteLockClass · 0.90

Tested by

no test coverage detected