cpython: 2729823525fe (original) (raw)

Mercurial > cpython

changeset 90324:2729823525fe 3.4

asyncio.tasks: Make sure CoroWrapper.send proxies one argument correctly Issue #21209. [#21209]

Yury Selivanov yselivanov@sprymix.com
date Tue, 15 Apr 2014 12:01:16 -0400
parents 4c65f8641d89
children 4ab2d8fac52b ebb9595af548
files Lib/asyncio/tasks.py Lib/test/test_asyncio/test_tasks.py
diffstat 2 files changed, 20 insertions(+), 0 deletions(-)[+] [-] Lib/asyncio/tasks.py 2 Lib/test/test_asyncio/test_tasks.py 18

line wrap: on

line diff

--- a/Lib/asyncio/tasks.py +++ b/Lib/asyncio/tasks.py @@ -53,6 +53,8 @@ class CoroWrapper: # We use *value because of a bug in CPythons prior # to 3.4.1. See issue #21209 and test_yield_from_corowrapper # for details. This workaround should be removed in 3.5.0.

def throw(self, exc):

--- a/Lib/test/test_asyncio/test_tasks.py +++ b/Lib/test/test_asyncio/test_tasks.py @@ -1410,6 +1410,24 @@ class TaskTests(unittest.TestCase): finally: asyncio.tasks._DEBUG = old_debug

+

+

+ class GatherTestsBase: