Closed bdowning closed 2 years ago
Let's inspect how python/cpython#31270 handles this...
Also refer https://bugs.python.org/issue46771
I have tested your code with asyncio.TaskGroup
introduced in Python 3.11 development version.
Got inner ExceptionGroup('unhandled errors in a TaskGroup', [Exception('bad stuff')])
Got outer ExceptionGroup('unhandled errors in a TaskGroup', [Exception('bad stuff')])
With aiotools.TaskGroup
,
Got outer CancelledError()
It seems to have some problem, definitely. I'll look into more.
See the following snippet:
Is this expected behavior? It feels wrong, since a) it ate an exception and b) the task wasn't actually cancelled.
This is Python 3.9 and aiotools 1.4.0.