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

Function advance_clock

tests/core/test_timeout_validation.py:161–164  ·  view source on GitHub ↗
(delay: float)

Source from the content-addressed store, hash-verified

159 elapsed = 0.0
160
161 def advance_clock(delay: float) -> None:
162 nonlocal elapsed
163 assert delay > 0
164 elapsed += delay
165
166 lock_path = tmp_path / "test.lock"
167 with lock_type(lock_path):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected