(lock_file: str)
| 134 | |
| 135 | @pytest.mark.asyncio |
| 136 | async def test_non_blocking_write(lock_file: str) -> None: |
| 137 | holder = ReadWriteLock(lock_file, is_singleton=False) |
| 138 | holder.acquire_read() |
| 139 | try: |
| 140 | lock = AsyncReadWriteLock(lock_file, is_singleton=False) |
| 141 | with pytest.raises(Timeout): |
| 142 | await lock.acquire_write(blocking=False) |
| 143 | finally: |
| 144 | holder.release() |
| 145 | |
| 146 | |
| 147 | @pytest.mark.asyncio |
nothing calls this directly
no test coverage detected
searching dependent graphs…