MCPcopy Create free account
hub / github.com/tox-dev/filelock / test_sequential_mode_switch

Function test_sequential_mode_switch

tests/test_async_read_write.py:304–311  ·  view source on GitHub ↗
(lock_file: str)

Source from the content-addressed store, hash-verified

302
303@pytest.mark.asyncio
304async def test_sequential_mode_switch(lock_file: str) -> None:
305 lock = AsyncReadWriteLock(lock_file, is_singleton=False)
306 async with lock.read_lock():
307 pass
308 async with lock.write_lock():
309 pass
310 async with lock.read_lock():
311 pass

Callers

nothing calls this directly

Calls 3

read_lockMethod · 0.95
write_lockMethod · 0.95
AsyncReadWriteLockClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…