(lock_file: str)
| 122 | |
| 123 | @pytest.mark.asyncio |
| 124 | async def test_non_blocking_read(lock_file: str) -> None: |
| 125 | holder = ReadWriteLock(lock_file, is_singleton=False) |
| 126 | holder.acquire_write() |
| 127 | try: |
| 128 | lock = AsyncReadWriteLock(lock_file, is_singleton=False) |
| 129 | with pytest.raises(Timeout): |
| 130 | await lock.acquire_read(blocking=False) |
| 131 | finally: |
| 132 | holder.release() |
| 133 | |
| 134 | |
| 135 | @pytest.mark.asyncio |
nothing calls this directly
no test coverage detected
searching dependent graphs…