FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-39915: Ensure await_args_list is updated according to the order in which coroutines were awaited by tirkarthi · Pull Request #18924 · python/cpython · GitHub

Repository navigation

bpo-39915: Ensure await_args_list is updated according to the order in which coroutines were awaited - #18924

Merged
cjw296 merged 2 commits into
python:masterfrom
tirkarthi:bpo39915
Mar 11, 2020
Merged

cjw296 merged 2 commits into
python:masterfrom
tirkarthi:bpo39915

Conversation

tirkarthi commented Mar 11, 2020 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

await_args_list should be updated with the arguments with which the mock was awaited instead of using call_args which has the last call object.

https://bugs.python.org/issue39915

tirkarthi requested review from cjw296 and lisroach March 11, 2020 14:37
tirkarthi changed the title bpo-39915: Ensure await_args_list is updated according to the order in which coroutines are awaited bpo-39915: Ensure await_args_list is updated according to the order in which coroutines were awaited Mar 11, 2020
tirkarthi added needs backport to 3.8 type-bug An unexpected behavior, bug, or error labels Mar 11, 2020

cjw296 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM!

cjw296 merged commit e553f20 into python:master Mar 11, 2020

Copy link
Copy Markdown
Contributor

Thanks @tirkarthi for the PR, and @cjw296 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 11, 2020
…n which coroutines were awaited (pythonGH-18924)

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

Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>

Copy link
Copy Markdown

GH-18927 is a backport of this pull request to the 3.8 branch.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL