(self)
| 439 | self.loop.run_until_complete(task) |
| 440 | |
| 441 | def test_task_basics(self): |
| 442 | |
| 443 | async def outer(): |
| 444 | a = await inner1() |
| 445 | b = await inner2() |
| 446 | return a+b |
| 447 | |
| 448 | async def inner1(): |
| 449 | return 42 |
| 450 | |
| 451 | async def inner2(): |
| 452 | return 1000 |
| 453 | |
| 454 | t = outer() |
| 455 | self.assertEqual(self.loop.run_until_complete(t), 1042) |
| 456 | |
| 457 | def test_exception_chaining_after_await(self): |
| 458 | # Test that when awaiting on a task when an exception is already |
nothing calls this directly
no test coverage detected