diff options
| author | Damien George <damien@micropython.org> | 2022-03-29 12:57:04 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-03-30 16:07:44 +1100 |
| commit | 90aaf2dbef657e5afb8855a42d26093c3ef2a38d (patch) | |
| tree | af6b356d6590a5d1f88d3cca3e670366be9598d3 /tests/extmod/uasyncio_gather_notimpl.py.exp | |
| parent | 335002a4c020850591122d763324599e5edbe045 (diff) | |
extmod/uasyncio: Fix gather cancelling and handling of exceptions.
The following fixes are made:
- cancelling a gather now cancels all sub-tasks of the gather (previously
it would only cancel the first)
- if any sub-task of a gather raises an exception then the gather finishes
(previously it would only finish if the first sub-task raised)
Fixes issues #5798, #7807, #7901.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/extmod/uasyncio_gather_notimpl.py.exp')
| -rw-r--r-- | tests/extmod/uasyncio_gather_notimpl.py.exp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/extmod/uasyncio_gather_notimpl.py.exp b/tests/extmod/uasyncio_gather_notimpl.py.exp new file mode 100644 index 000000000..f21614ffb --- /dev/null +++ b/tests/extmod/uasyncio_gather_notimpl.py.exp @@ -0,0 +1,14 @@ +task start 1 +task start 2 +gather_task start +RuntimeError("can't wait",) +task end 1 +task end 2 +gather_task end +==== +task start 1 +task start 2 +gather_task start +RuntimeError("can't gather",) +task end 1 +task end 2 |
