
This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
Created on2018-05-15 11:48 bymjpieters, last changed2022-04-11 14:59 byadmin. This issue is nowclosed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 6880 | merged | jreese,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)*![]() | 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)*![]() | Date: 2018-05-22 20:02 | |
Thank you Martijn Pieters for the feature request/bug report, and thanks John Reese for the implementation! | |||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:59:00 | admin | set | github: 77697 |
| 2018-05-22 20:02:10 | vstinner | set | status: open -> closed resolution: fixed messages: +msg317337 stage: patch review -> resolved |
| 2018-05-22 20:01:15 | vstinner | set | nosy: +vstinner messages: +msg317336 |
| 2018-05-18 18:05:17 | terry.reedy | set | nosy: +michael.foord versions: + Python 3.8 |
| 2018-05-17 15:08:37 | jreese | set | nosy: +lukasz.langa,jreese |
| 2018-05-15 21:36:52 | jreese | set | keywords: +patch stage: patch review pull_requests: +pull_request6553 |
| 2018-05-15 11:48:12 | mjpieters | create | |