bpo-37955: mock.patch incorrect reference to Mock#15521
Conversation
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Our records indicate we have not received your CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. If you have recently signed the CLA, please wait at least one business day You can check yourself to see if the CLA has been received. Thanks again for your contribution, we look forward to reviewing it! |
Sorry, something went wrong.
|
Changing the hyperlink to |
Sorry, something went wrong.
mock.patch mentions that keyword arguments are passed to Mock when it passes to MagicMock by default. This PR fixes that.
6c0f647 to
6578726
Compare
August 26, 2019 16:08
The issue on #13681 seems important, the return value on those functions is mostly undocumented right now (since 3.8 changes). Maybe we should stop mentioning what the actual return type is and say it is whatever is on new_callable and at new_callable we can mention that it depends based on async or not. |
Sorry, something went wrong.
This patch adds information about possible use of a AsyncMock when passing arbitrary arguments to mock.patch.
|
Latest patch adjust the text to account the suggestions. Appreciate any reviews. |
Sorry, something went wrong.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Sorry, something went wrong.
|
I have made the requested changes; please review again. |
Sorry, something went wrong.
|
Thanks for making the requested changes! @cjw296: please review the changes made to this pull request. |
Sorry, something went wrong.
|
I have made the requested changes; please review again. |
Sorry, something went wrong.
|
Thanks for making the requested changes! @cjw296: please review the changes made to this pull request. |
Sorry, something went wrong.
Sorry, something went wrong.
cjw296
left a comment
There was a problem hiding this comment.
Actually, let's leave the bigger change for another time.
Sorry, something went wrong.
|
Thanks! |
Sorry, something went wrong.
mock.patch mentions that keyword arguments are passed
to Mock when it passes to MagicMock by default.
This PR fixes that.
https://bugs.python.org/issue37955