Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue33516

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:unittest.mock: Add __round__ to supported magicmock methods
Type:enhancementStage:resolved
Components:Library (Lib)Versions:Python 3.8
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: jreese, lukasz.langa, michael.foord, mjpieters, vstinner
Priority:normalKeywords:patch

Created on2018-05-15 11:48 bymjpieters, last changed2022-04-11 14:59 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 6880mergedjreese,2018-05-15 21:36
Messages (3)
msg316641 -(view)Author: Martijn Pieters (mjpieters)*Date: 2018-05-15 11:48
I notice that __trunc__, __floor__ and __ceil__ are supported methods for MagicMock, but __round__ (in the same grouping of numeric types emulation methods, seehttps://docs.python.org/3/reference/datamodel.html#object.__round__), is not.Please add this to the mapping too.
msg317336 -(view)Author: STINNER Victor (vstinner)*(Python committer)Date: 2018-05-22 20:01
New changeset6c4fab0f4b95410a1a964a75dcdd953697eff089 by Victor Stinner (John Reese) in branch 'master':bpo-33516: Add support for __round__ in MagicMock (GH-6880)https://github.com/python/cpython/commit/6c4fab0f4b95410a1a964a75dcdd953697eff089
msg317337 -(view)Author: STINNER Victor (vstinner)*(Python committer)Date: 2018-05-22 20:02
Thank you Martijn Pieters for the feature request/bug report, and thanks John Reese for the implementation!
History
DateUserActionArgs
2022-04-11 14:59:00adminsetgithub: 77697
2018-05-22 20:02:10vstinnersetstatus: open -> closed
resolution: fixed
messages: +msg317337

stage: patch review -> resolved
2018-05-22 20:01:15vstinnersetnosy: +vstinner
messages: +msg317336
2018-05-18 18:05:17terry.reedysetnosy: +michael.foord

versions: + Python 3.8
2018-05-17 15:08:37jreesesetnosy: +lukasz.langa,jreese
2018-05-15 21:36:52jreesesetkeywords: +patch
stage: patch review
pull_requests: +pull_request6553
2018-05-15 11:48:12mjpieterscreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp