[issue28260] mock._Any and mock._Call implement __eq__ but not __hash__
Roy Williams
report at bugs.python.org
Sun Sep 25 12:06:40 EDT 2016
Roy Williams added the comment:
Hey Antti
My understanding is the version available on PyPi is now a strict backport
of what's in Python 3, so they suggested filling the bug in bugs.python.org
so it can be backported.
http://lists.idyll.org/pipermail/testing-in-python/2016-September/006864.html
Thanks,
Roy
On Sep 25, 2016 4:24 AM, "Antti Haapala" <report at bugs.python.org> wrote:
>
> Antti Haapala added the comment:
>
> So you mean that unittest.mock should explicitly set `__hash__ = None`;
> but this is already what the unittest.mock does, in Python 3; there is no
> need to set `__hash__ = None`; it is the backport that needs to do this in
> order to stay compatible. There is no mock.py in 2.7.
>
> ----------
> nosy: +ztane
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue28260>
> _______________________________________
>
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28260>
_______________________________________
More information about the Python-bugs-list
mailing list