]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39915: Ensure await_args_list is updated according to the order in which coroutin...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 14 Mar 2020 07:12:57 +0000 (00:12 -0700)
committerGitHub <noreply@github.com>
Sat, 14 Mar 2020 07:12:57 +0000 (07:12 +0000)
commitf6bdac1bf718eab0cc5b6554f363f21252d245ce
tree840a7320e5dc03a3994d85e95cc23a7801ef278d
parentd3af92ecc2f41d920e9a66211e2ab631fc473163
bpo-39915: Ensure await_args_list is updated according to the order in which coroutines were awaited (GH-18927)

Create call objects with awaited arguments instead of using call_args which has only last call value.
(cherry picked from commit e553f204bf0e39b1d701a364bc71b286acb9433f)

Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
Lib/unittest/mock.py
Lib/unittest/test/testmock/testasync.py
Misc/NEWS.d/next/Library/2020-03-10-19-38-47.bpo-39915.CjPeiY.rst [new file with mode: 0644]