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

Class _SlowLock

tests/core/test_singleton.py:128–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 lock_path = tmp_path / "a"
127
128 class _SlowLock(SoftFileLock):
129 def __init__(self, lock_file: str, *, is_singleton: bool = True) -> None:
130 time.sleep(0.05) # simplint: ignore[sleep-in-test] # needs a construction-start hook
131 super().__init__(lock_file, is_singleton=is_singleton)
132
133 results: list[BaseFileLock] = []
134 barrier = threading.Barrier(2)

Callers 1

buildFunction · 0.85

Calls

no outgoing calls

Tested by 1

buildFunction · 0.68