(self)
| 456 | self.assertTrue(t3.result()) |
| 457 | |
| 458 | async def test_wait_cancel(self): |
| 459 | cond = asyncio.Condition() |
| 460 | await cond.acquire() |
| 461 | |
| 462 | wait = asyncio.create_task(cond.wait()) |
| 463 | asyncio.get_running_loop().call_soon(wait.cancel) |
| 464 | with self.assertRaises(asyncio.CancelledError): |
| 465 | await wait |
| 466 | self.assertFalse(cond._waiters) |
| 467 | self.assertTrue(cond.locked()) |
| 468 | |
| 469 | async def test_wait_cancel_contested(self): |
| 470 | cond = asyncio.Condition() |
nothing calls this directly
no test coverage detected