(lock_file: str)
| 132 | |
| 133 | @pytest.mark.asyncio |
| 134 | async 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 |
nothing calls this directly
no test coverage detected