mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
bpo-39915: Ensure await_args_list is updated according to the order in which coroutines were awaited (GH-18924)
Create call objects with awaited arguments instead of using call_args which has only last call value.
This commit is contained in:
parent
fde44ae6d0
commit
e553f204bf
3 changed files with 16 additions and 1 deletions
|
@ -2171,7 +2171,7 @@ class AsyncMockMixin(Base):
|
|||
# This is nearly just like super(), except for special handling
|
||||
# of coroutines
|
||||
|
||||
_call = self.call_args
|
||||
_call = _Call((args, kwargs), two=True)
|
||||
self.await_count += 1
|
||||
self.await_args = _call
|
||||
self.await_args_list.append(_call)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue