mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
asyncio: Test fix.
This commit is contained in:
parent
3d7b3641d3
commit
313f829ce8
1 changed files with 1 additions and 1 deletions
|
@ -860,7 +860,7 @@ class TaskTests(unittest.TestCase):
|
|||
def runner():
|
||||
result = []
|
||||
c = coro('ham')
|
||||
for f in asyncio.as_completed({c, c, coro('spam')}, loop=self.loop):
|
||||
for f in asyncio.as_completed([c, c, coro('spam')], loop=self.loop):
|
||||
result.append((yield from f))
|
||||
return result
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue