[issue25597] unittest.mock does not wrap dunder methods (__getitem__ etc)

Michael Foord report at bugs.python.org
Thu Sep 12 07:28:18 EDT 2019


Michael Foord <michael at voidspace.org.uk> added the comment:

As discussed with Karthik, I think this is a nice feature enhancement for the wraps functionality and worth fixing. It has the great advantage that the fix is nice and isolated and simple.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue25597>
_______________________________________


More information about the Python-bugs-list mailing list