(lock_file: str)
| 146 | |
| 147 | @pytest.mark.asyncio |
| 148 | async def test_timeout_expires(lock_file: str) -> None: |
| 149 | holder = ReadWriteLock(lock_file, is_singleton=False) |
| 150 | holder.acquire_write() |
| 151 | try: |
| 152 | lock = AsyncReadWriteLock(lock_file, is_singleton=False) |
| 153 | with pytest.raises(Timeout): |
| 154 | await lock.acquire_read(timeout=0.2) |
| 155 | await lock.close() |
| 156 | finally: |
| 157 | holder.release() |
| 158 | |
| 159 | |
| 160 | @pytest.mark.asyncio |
nothing calls this directly
no test coverage detected