cpython: 13ff8645be57 (original) (raw)

Mercurial > cpython

changeset 90314:13ff8645be57

syncio.tasks: Fix CoroWrapper to workaround yield-from bug in CPython < 3.4.1 Closes issue #21209. [#21209]

Yury Selivanov yselivanov@sprymix.com
date Mon, 14 Apr 2014 22:24:51 -0400
parents 54f1168036f1
children f021049608a1
files Lib/asyncio/tasks.py Lib/test/test_asyncio/test_tasks.py Misc/NEWS
diffstat 3 files changed, 32 insertions(+), 1 deletions(-)[+] [-] Lib/asyncio/tasks.py 5 Lib/test/test_asyncio/test_tasks.py 25 Misc/NEWS 3

line wrap: on

line diff

--- a/Lib/asyncio/tasks.py +++ b/Lib/asyncio/tasks.py @@ -49,7 +49,10 @@ class CoroWrapper: def next(self): return next(self.gen)

def throw(self, exc):

--- a/Lib/test/test_asyncio/test_tasks.py +++ b/Lib/test/test_asyncio/test_tasks.py @@ -1386,6 +1386,31 @@ class TaskTests(unittest.TestCase): self.assertRaises(ValueError, self.loop.run_until_complete, asyncio.wait([], loop=self.loop))

+

+

+

+ + class GatherTestsBase: def setUp(self):

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -206,6 +206,9 @@ Library