[issue39915] AsyncMock doesn't work with asyncio.gather
Mads Sejersen
report at bugs.python.org
Mon Mar 9 12:29:08 EDT 2020
New submission from Mads Sejersen <mas at issuu.com>:
When calling asyncio.gather the await_args_list is not correct. In the attached minimal example it contains only the latest call and not each of the three actual calls.
Expected output:
[call(0), call(1), call(2)]
[call(1), call(2), call(3)] # or any permutation hereof
Actual output:
[call(0), call(1), call(2)]
[call(3), call(3), call(3)]
----------
components: asyncio
files: fail.py
messages: 363748
nosy: Mads Sejersen, asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: AsyncMock doesn't work with asyncio.gather
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file48963/fail.py
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39915>
_______________________________________
More information about the Python-bugs-list
mailing list