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

Function test_recursive_lock_acquisition

tests/test_read_write.py:296–304  ·  view source on GitHub ↗
(lock_file: str, mode: Literal["read", "write"])

Source from the content-addressed store, hash-verified

294)
295@pytest.mark.timeout(_PROCESS_DEADLINE * 3)
296def test_recursive_lock_acquisition(lock_file: str, mode: Literal["read", "write"]) -> None:
297 success = Value("i", 0)
298 worker = Process(target=recursive_lock, args=(lock_file, mode, success))
299
300 with cleanup_processes([worker]):
301 worker.start()
302 worker.join(timeout=_PROCESS_DEADLINE)
303
304 assert success.value == 1, "Recursive lock acquisition failed"
305
306
307@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

cleanup_processesFunction · 0.90
joinMethod · 0.80

Tested by

no test coverage detected