()
| 135 | mocker.patch.object(lock, "_run_acquire", autospec=True, side_effect=gated_acquire) |
| 136 | |
| 137 | async def work() -> None: |
| 138 | async with lock.write_lock(timeout=TASK_WAIT): |
| 139 | entered.set() |
| 140 | await finish.wait() |
| 141 | |
| 142 | acquiring = asyncio.create_task(work()) |
| 143 | holder.release() |
no test coverage detected