asyncio: Test fix.

This commit is contained in:
Guido van Rossum 2014-02-08 17:35:09 -08:00
parent 3d7b3641d3
commit 313f829ce8
1 changed files with 1 additions and 1 deletions

View File

@ -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