summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_tasks.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-05-12 02:27:25 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-05-12 02:27:25 (GMT)
commit1af2bf75a2f816eaaf8353eaab8b6dcfee0064c0 (patch)
treed76885ce449761c6dd9893446f359a03327ed6d5 /Lib/test/test_asyncio/test_tasks.py
parentd7e19bb566889343f39c34c98bca4d6db61b53d7 (diff)
downloadcpython-1af2bf75a2f816eaaf8353eaab8b6dcfee0064c0.zip
cpython-1af2bf75a2f816eaaf8353eaab8b6dcfee0064c0.tar.gz
cpython-1af2bf75a2f816eaaf8353eaab8b6dcfee0064c0.tar.bz2
asyncio: Support PEP 492. Issue #24017.
Diffstat (limited to 'Lib/test/test_asyncio/test_tasks.py')
-rw-r--r--Lib/test/test_asyncio/test_tasks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py
index 4119085..6541df7 100644
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -1638,7 +1638,7 @@ class TaskTests(test_utils.TestCase):
return a
def call(arg):
- cw = asyncio.coroutines.CoroWrapper(foo(), foo)
+ cw = asyncio.coroutines.CoroWrapper(foo())
cw.send(None)
try:
cw.send(arg)
@@ -1653,7 +1653,7 @@ class TaskTests(test_utils.TestCase):
def test_corowrapper_weakref(self):
wd = weakref.WeakValueDictionary()
def foo(): yield from []
- cw = asyncio.coroutines.CoroWrapper(foo(), foo)
+ cw = asyncio.coroutines.CoroWrapper(foo())
wd['cw'] = cw # Would fail without __weakref__ slot.
cw.gen = None # Suppress warning from __del__.