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

Function interrupted

tests/sqlite/test_links_sweep.py:169–171  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

167
168 @contextmanager
169 def interrupted(path: Path) -> Generator[Iterator[os.DirEntry[str]]]:
170 with scandir(path) as entries:
171 yield invalidated(entries)
172
173 scans = mocker.patch("os.scandir", autospec=True, side_effect=interrupted)
174 clock = mocker.patch("filelock._sqlite._links.time", autospec=True).monotonic

Callers

nothing calls this directly

Calls 1

invalidatedFunction · 0.85

Tested by

no test coverage detected