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

Function test_singleton_different_files

tests/sqlite/test_lock_settings.py:50–53  ·  view source on GitHub ↗
(tmp_path: Path)

Source from the content-addressed store, hash-verified

48
49
50def test_singleton_different_files(tmp_path: Path) -> None:
51 lock1 = ReadWriteLock(str(tmp_path / "a.db"))
52 lock2 = ReadWriteLock(str(tmp_path / "b.db"))
53 assert lock1 is not lock2
54
55
56def test_singleton_rejects_directory_change_during_construction(

Callers

nothing calls this directly

Calls 1

ReadWriteLockClass · 0.90

Tested by

no test coverage detected