| 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) |