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

Michael Foord report at bugs.python.org
Thu Sep 12 07:29:41 EDT 2019


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

The previous behaviour was unspecified and clearly due to missing functionality, so the advantages of fixing it outweigh any potential compatibility issues. But I'd see it as a feature enhancement for 3.9.

----------

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


More information about the Python-bugs-list mailing list