We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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?
to your account
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
assignee = None
closed_at = <Date 2018-05-22.20:02:10.686>
created_at = <Date 2018-05-15.11:48:12.702>
labels = ['3.8', 'type-feature', 'library']
title = 'unittest.mock: Add __round__ to supported magicmock methods'
updated_at = <Date 2018-05-22.20:02:10.685>
user = 'https://github.com/mjpieters'
activity = <Date 2018-05-22.20:02:10.685>
actor = 'vstinner'
assignee = 'none'
closed = True
closed_date = <Date 2018-05-22.20:02:10.686>
closer = 'vstinner'
components = ['Library (Lib)']
creation = <Date 2018-05-15.11:48:12.702>
creator = 'mjpieters'
dependencies = 
files = 
hgrepos = 
issue_num = 33516
keywords = ['patch']
message_count = 3.0
messages = ['316641', '317336', '317337']
nosy_count = 5.0
nosy_names = ['mjpieters', 'vstinner', 'michael.foord', 'lukasz.langa', 'jreese']
pr_nums = ['6880']
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue33516'
versions = ['Python 3.8']
The text was updated successfully, but these errors were encountered:
I notice that __trunc__, __floor__ and __ceil__ are supported methods for MagicMock, but __round__ (in the same grouping of numeric types emulation methods, see https://docs.python.org/3/reference/datamodel.html#object.\_\_round__), is not.
Please add this to the mapping too.
Sorry, something went wrong.
New changeset 6c4fab0 by Victor Stinner (John Reese) in branch 'master':
bpo-33516: Add support for __round__ in MagicMock (GH-6880)
Thank you Martijn Pieters for the feature request/bug report, and thanks John Reese for the implementation!
No branches or pull requests