summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_tasks.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-05-12 02:31:19 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-05-12 02:31:19 (GMT)
commitdc6a9c04234ffc95b4a6a74c19c234cd9aa6e8c2 (patch)
tree56b2c8ec0f39b815a7793894157e8be0735890fa /Lib/test/test_asyncio/test_tasks.py
parent99bf9a256754319a64b84dd633d91d8eedd497a7 (diff)
parent1af2bf75a2f816eaaf8353eaab8b6dcfee0064c0 (diff)
downloadcpython-dc6a9c04234ffc95b4a6a74c19c234cd9aa6e8c2.zip
cpython-dc6a9c04234ffc95b4a6a74c19c234cd9aa6e8c2.tar.gz
cpython-dc6a9c04234ffc95b4a6a74c19c234cd9aa6e8c2.tar.bz2
asyncio: Merge 3.4 -- 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__.