summaryrefslogtreecommitdiff
path: root/tests/test_tasks.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_tasks.py')
-rw-r--r--tests/test_tasks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_tasks.py b/tests/test_tasks.py
index 4119085..6541df7 100644
--- a/tests/test_tasks.py
+++ b/tests/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__.