circuitpython/tests/basics/async_with.py.exp
Damien George 12ce9f2689 py/compile: Fix handling of unwinding BaseException in async with.
All exceptions that unwind through the async-with must be caught and
BaseException is the top-level class, which includes Exception and others.

Fixes issue #4552.
2019-02-26 23:52:10 +11:00

12 lines
136 B
Plaintext

enter
body
exit None None
finished
enter
1
exit <class 'ValueError'> error
ValueError
enter
exit <class 'BaseException'>
BaseException