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

Function test_release_force

tests/sqlite/test_async.py:169–176  ·  view source on GitHub ↗
(lock_file: str)

Source from the content-addressed store, hash-verified

167
168@pytest.mark.asyncio
169async def test_release_force(lock_file: str) -> None:
170 lock = AsyncReadWriteLock(lock_file, is_singleton=False)
171 await lock.acquire_write()
172 await lock.acquire_write()
173 await lock.release(force=True)
174 with pytest.raises(RuntimeError, match="not held"):
175 await lock.release()
176 await lock.close()
177
178
179@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected