(lock_file: str)
| 278 | |
| 279 | @pytest.mark.asyncio |
| 280 | async def test_sequential_mode_switch(lock_file: str) -> None: |
| 281 | lock = AsyncReadWriteLock(lock_file, is_singleton=False) |
| 282 | async with lock.read_lock(): |
| 283 | pass |
| 284 | async with lock.write_lock(): |
| 285 | pass |
| 286 | async with lock.read_lock(): |
| 287 | pass |
| 288 | await lock.close() |
| 289 | |
| 290 | |
| 291 | def assert_mode_held(lock_file: str, mode: Literal["read", "write"]) -> None: |
nothing calls this directly
no test coverage detected