()
| 904 | raise RuntimeError() |
| 905 | |
| 906 | async def inner(): |
| 907 | try: |
| 908 | async with taskgroups.TaskGroup() as tg: |
| 909 | tg.create_task(raise_error()) |
| 910 | await asyncio.sleep(1) |
| 911 | self.fail("Sleep in group should have been cancelled") |
| 912 | except* RuntimeError: |
| 913 | self.assertEqual(asyncio.current_task().cancelling(), 1) |
| 914 | self.assertEqual(asyncio.current_task().cancelling(), 1) |
| 915 | await asyncio.sleep(1) |
| 916 | self.fail("Sleep after group should have been cancelled") |
| 917 | |
| 918 | async def outer(): |
| 919 | t = asyncio.create_task(inner()) |
nothing calls this directly
no test coverage detected