()
| 55 | tasks: Queue[asyncio.Task[AsyncAcquireReturnProxy]], |
| 56 | ) -> None: |
| 57 | async def start_acquire() -> None: |
| 58 | tasks.put( |
| 59 | _CancellationObservedTask( |
| 60 | lock.acquire(), |
| 61 | cancellation_seen, |
| 62 | loop=asyncio.get_running_loop(), |
| 63 | ) |
| 64 | ) |
| 65 | assert await asyncio.to_thread(hook_started.wait, 5) |
| 66 | |
| 67 | asyncio.run(start_acquire()) |
| 68 |
no test coverage detected