mirror of https://github.com/python/cpython
asyncio: Test fix.
This commit is contained in:
parent
3d7b3641d3
commit
313f829ce8
|
@ -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…
Reference in New Issue