[issue23569] unittest.mock.MagicMock.__div__ works but __truediv__ doesn't (3.3 only)
Zygmunt Krynicki
report at bugs.python.org
Tue Mar 3 09:41:21 CET 2015
New submission from Zygmunt Krynicki:
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
----------
messages: 237113
nosy: zkrynicki
priority: normal
severity: normal
status: open
title: unittest.mock.MagicMock.__div__ works but __truediv__ doesn't (3.3 only)
type: behavior
versions: Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23569>
_______________________________________
More information about the Python-bugs-list
mailing list