()
| 75 | assert str(e) == "Error in future1", f"Expected 'Error in future1', got '{str(e)}'" |
| 76 | |
| 77 | async def test_await_canceled_future(): |
| 78 | print("test_await_canceled_future") |
| 79 | future = Future() |
| 80 | try: |
| 81 | future.cancel() |
| 82 | await future |
| 83 | assert False, "Expected an exception but none was raised" |
| 84 | except asyncio.CancelledError as e: |
| 85 | assert isinstance(e, asyncio.CancelledError), "Expected asyncio.CancelledError" |
| 86 | |
| 87 | async def test_cancel(): |
| 88 | print("test_cancel") |
no test coverage detected
searching dependent graphs…