()
| 119 | mocker.patch.object(lock, "_run_acquire", autospec=True, side_effect=gated_acquire) |
| 120 | |
| 121 | async def work() -> None: |
| 122 | async with lock.write_lock(timeout=TASK_WAIT): |
| 123 | entered.set() |
| 124 | await finish.wait() |
| 125 | |
| 126 | acquiring = asyncio.create_task(work()) |
| 127 | holder.release() |
no test coverage detected