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

Class FilePathLock

tests/core/test_lock.py:291–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289
290def test_file_lock_positional_argument(tmp_path: Path) -> None:
291 class FilePathLock(FileLock):
292 def __init__(self, file_path: str) -> None:
293 super().__init__(f"{file_path}.lock")
294
295 lock_path = tmp_path / "a"
296 lock = FilePathLock(str(lock_path))

Callers 1

Calls

no outgoing calls

Tested by 1