mirror of https://github.com/tqdm/tqdm.git
parent
d0483be6c0
commit
223561a83b
|
@ -122,7 +122,7 @@ async def double(i):
|
|||
@mark.asyncio
|
||||
async def test_gather(capsys):
|
||||
"""Test asyncio gather"""
|
||||
res = await gather(list(map(double, range(30))))
|
||||
res = await gather(*map(double, range(30)))
|
||||
_, err = capsys.readouterr()
|
||||
assert '30/30' in err
|
||||
assert res == list(range(0, 30 * 2, 2))
|
||||
|
|
|
@ -68,7 +68,7 @@ class tqdm_asyncio(std_tqdm):
|
|||
total=total, **tqdm_kwargs)
|
||||
|
||||
@classmethod
|
||||
async def gather(cls, fs, *, loop=None, timeout=None, total=None, **tqdm_kwargs):
|
||||
async def gather(cls, *fs, loop=None, timeout=None, total=None, **tqdm_kwargs):
|
||||
"""
|
||||
Wrapper for `asyncio.gather`.
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue