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

Method __fspath__

tests/sqlite/test_lock_settings.py:67–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65 calls = 0
66
67 def __fspath__(self) -> str:
68 self.calls += 1
69 if self.calls == 2:
70 monkeypatch.chdir(spool)
71 return "gate.db"
72
73 monkeypatch.chdir(state)
74 with pytest.raises(RuntimeError, match="path changed during singleton construction"):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected