This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: unittest.mock.MagicMock.__div__ works but __truediv__ doesn't (3.3 only)
Type: behavior Stage: resolved
Components: Versions: Python 3.3
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: ned.deily, zkrynicki
Priority: normal Keywords:

Created on 2015-03-03 08:41 by zkrynicki, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg237113 - (view) Author: Zygmunt Krynicki (zkrynicki) Date: 2015-03-03 08:41
Hey.

I'm the upstream developer of padme https://github.com/zyga/padme -- the mostly transparent proxy class for Python. While working on unit tests for proxying numeric methods I realized that there are a few bugs in the mock library.

The bug I'd like to report now is that __truemod__ cannot be mocked by MagicMock but __div__ can (despite __div__ being gone from Python 3 entirely). This bug is specific to Python 3.3 and it is fixed in 3.4 and 3.5a1
msg237167 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2015-03-03 22:48
Thanks for the report, however, per our support policy, Python 3.3 is now open only for security fixes for the remainder of its support window.
History
Date User Action Args
2022-04-11 14:58:13adminsetgithub: 67757
2015-03-03 22:48:45ned.deilysetstatus: open -> closed

nosy: + ned.deily
messages: + msg237167

resolution: wont fix
stage: resolved
2015-03-03 08:41:21zkrynickicreate