diff options
author | Damien George <damien.p.george@gmail.com> | 2016-09-28 11:52:13 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-09-28 11:52:13 +1000 |
commit | b32c01b7489f233ae7b1c211a8b93e23149fb0f3 (patch) | |
tree | 23a03c04dd038925e6c5990e437ad1689e08d0df /tests/basics/async_with2.py | |
parent | 443cc0114d7669471e39661c97e2bad91c8eabb8 (diff) | |
download | micropython-b32c01b7489f233ae7b1c211a8b93e23149fb0f3.tar.gz micropython-b32c01b7489f233ae7b1c211a8b93e23149fb0f3.zip |
py/compile: Fix async-for/async-with to work with simpler exc on stack.
There is now just the exception instance on the stack when an exception is
raised, not the full (type, exc, traceback).
Diffstat (limited to 'tests/basics/async_with2.py')
-rw-r--r-- | tests/basics/async_with2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/basics/async_with2.py b/tests/basics/async_with2.py index 0ebec489fe..44421ae917 100644 --- a/tests/basics/async_with2.py +++ b/tests/basics/async_with2.py @@ -20,7 +20,7 @@ class AContext: print('enter') print('f returned:', await f(10)) async def __aexit__(self, exc_type, exc, tb): - print('exit') + print('exit', exc_type, exc) print('f returned:', await f(20)) async def coro(): |