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

Function sync_locks

tests/sqlite/conftest.py:72–77  ·  view source on GitHub ↗
(tmp_path: Path)

Source from the content-addressed store, hash-verified

70
71@pytest.fixture
72def sync_locks(tmp_path: Path) -> Generator[tuple[ReadWriteLock, ReadWriteLock]]:
73 with (
74 closing(ReadWriteLock(tmp_path / "a", timeout=30, is_singleton=False)) as holder,
75 closing(ReadWriteLock(tmp_path / "a", timeout=30, is_singleton=False)) as contender,
76 ):
77 yield holder, contender

Callers

nothing calls this directly

Calls 1

ReadWriteLockClass · 0.90

Tested by

no test coverage detected