cpython: 552ee474f3e7 (original) (raw)

Mercurial > cpython

changeset 90325:552ee474f3e7

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:44 -0400
parents 2d33cbf02522
children 4ab2d8fac52b
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: