-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
bpo-25597: Ensure wraps' return value is used for magic methods in MagicMock #16029
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
mangrisano
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
cjw296
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, but the news entry needs some work, not sure my interpretation is correct?
| @@ -0,0 +1,3 @@ | |||
| Ensure ``wraps`` is supplied to :class:`unittest.mock.MagicMock` is used to | |||
| calculate return values for the magic methods instead of using the default | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Ensure, if wraps is supplied to :class:unittest.mock.MagicMock, it is used to" maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Chris, updated.
|
When you're done making the requested changes, leave the comment: |
|
I have made the requested changes; please review again |
|
Thanks for making the requested changes! @cjw296: please review the changes made to this pull request. |
|
@cjw296: Please replace |
|
Thanks Chris :) |
…ds in MagicMock (python#16029)" This reverts commit 72b1004.
https://bugs.python.org/issue25597