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