mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-32636: Fix two bugs in test_asyncio (#5302)
This commit is contained in:
parent
fb5a7ad421
commit
789e359f51
2 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue