aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_asyncio/test_tasks.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2018-01-24 21:15:14 +0100
committerYury Selivanov <yury@magic.io>2018-01-24 15:15:14 -0500
commit789e359f51d2b27bea01b8c6c3bf090aaedf8839 (patch)
tree47a287104ab678eb942631a312d47e5168f1ac65 /Lib/test/test_asyncio/test_tasks.py
parentfb5a7ad421ac20c49218ee4b86fb0d85ca4cd664 (diff)
downloadcpython-789e359f51d2b27bea01b8c6c3bf090aaedf8839.tar.gz
cpython-789e359f51d2b27bea01b8c6c3bf090aaedf8839.zip
bpo-32636: Fix two bugs in test_asyncio (#5302)
Diffstat (limited to 'Lib/test/test_asyncio/test_tasks.py')
-rw-r--r--Lib/test/test_asyncio/test_tasks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py
index 5e83a54ff28..822338f932e 100644
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -2448,7 +2448,7 @@ class CTask_Future_Tests(test_utils.TestCase):
self.loop = asyncio.new_event_loop()
try:
fut = Fut(loop=self.loop)
- self.loop.call_later(0.1, fut.set_result(1))
+ self.loop.call_later(0.1, fut.set_result, 1)
task = asyncio.Task(coro(), loop=self.loop)
res = self.loop.run_until_complete(task)
finally: