(lock_file: str, mode: Literal["read", "write"])
| 294 | ) |
| 295 | @pytest.mark.timeout(_PROCESS_DEADLINE * 3) |
| 296 | def 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( |
nothing calls this directly
no test coverage detected