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

Function test_context_resolves_wait_settings

tests/test_public_api.py:66–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64
65
66def test_context_resolves_wait_settings() -> None:
67 context = filelock.FileLockContext("lock", timeout=2, mode=0o600, blocking=True, poll_interval=0.1)
68 wait = context.acquire_wait(None, 0.2, None, blocking=None, cancel_check=None)
69 assert isinstance(wait, filelock.AcquireWait)
70 assert (wait.blocking, wait.timeout, wait.poll_interval) == (True, 2, 0.2)

Callers

nothing calls this directly

Calls 1

acquire_waitMethod · 0.95

Tested by

no test coverage detected