micropython/tests/extmod/uasyncio_wait_for_fwd.py.exp
Damien George b505971069 extmod/uasyncio: Fix cancellation handling of wait_for.
This commit switches the roles of the helper task from a cancellation task
to a runner task, to get the correct semantics for cancellation of
wait_for.

Some uasyncio tests are now disabled for the native emitter due to issues
with native code generation of generators and yield-from.

Fixes #5797.

Signed-off-by: Damien George <damien@micropython.org>
2020-12-02 12:31:37 +11:00

27 lines
396 B
Plaintext

----------
cancel started
awaiting started
cancel wait()
Got canceled
awaiting canceled
waiting got cancelled
----------
cancel started
awaiting started
cancel wait()
Got canceled
awaiting canceled
waiting got cancelled
----------
cancel started
awaiting started
cancel wait()
Got canceled
awaiting canceled
----------
cancel started
awaiting started
cancel wait()
Got canceled
awaiting canceled