Skip to content

bpo-39966: Fix wrapped objects exception mockunittest#19102

Closed
amiremohamadi wants to merge 7 commits into
python:masterfrom
amiremohamadi:fix-wrapped-objects-exception-mockunittest
Closed

bpo-39966: Fix wrapped objects exception mockunittest#19102
amiremohamadi wants to merge 7 commits into
python:masterfrom
amiremohamadi:fix-wrapped-objects-exception-mockunittest

Conversation

@amiremohamadi

@amiremohamadi amiremohamadi commented Mar 21, 2020

Copy link
Copy Markdown
Contributor

the wrapped value of magic methods will be used when present or falls back to the default value.
@brandtbucher

https://bugs.python.org/issue39966

@brandtbucher brandtbucher left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @amiremohamadi, this looks good.

I just think we can simplify the tests and clean up the NEWS entry a bit:

Comment thread Lib/unittest/test/testmock/testmock.py Outdated
Comment thread Lib/unittest/test/testmock/testmock.py Outdated
Comment thread Misc/NEWS.d/next/Library/2020-03-21-17-16-51.bpo-39966.3cRQmc.rst Outdated
@brandtbucher

Copy link
Copy Markdown
Member

The CI failure is a separate bug, and can be ignored.

@brandtbucher brandtbucher added the type-bug An unexpected behavior, bug, or error label Mar 25, 2020
amiremohamadi and others added 3 commits March 25, 2020 20:46
Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com>
Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com>
Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com>

@brandtbucher brandtbucher left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Awesome, thanks!

@brandtbucher
brandtbucher requested a review from tirkarthi March 25, 2020 16:39
@tirkarthi

Copy link
Copy Markdown
Member

Closing this as the change was reverted. Please refer to the bug for discussion.

@tirkarthi tirkarthi closed this Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants