(lock_file: str)
| 111 | |
| 112 | @pytest.mark.asyncio |
| 113 | async def test_timeout_expires(lock_file: str) -> None: |
| 114 | holder = ReadWriteLock(lock_file, is_singleton=False) |
| 115 | holder.acquire_write() |
| 116 | try: |
| 117 | lock = AsyncReadWriteLock(lock_file, is_singleton=False) |
| 118 | with pytest.raises(Timeout): |
| 119 | await lock.acquire_read(timeout=0.2) |
| 120 | await lock.close() |
| 121 | finally: |
| 122 | holder.release() |
| 123 | |
| 124 | |
| 125 | @pytest.mark.asyncio |
nothing calls this directly
no test coverage detected