From b32c01b7489f233ae7b1c211a8b93e23149fb0f3 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 28 Sep 2016 11:52:13 +1000 Subject: 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). --- tests/basics/async_with2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/basics/async_with2.py') 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(): -- cgit v1.2.3