mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +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():
|
def runner():
|
||||||
result = []
|
result = []
|
||||||
c = coro('ham')
|
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))
|
result.append((yield from f))
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue