[issue21270] unittest.mock.call object has inherited count method

Michael Foord report at bugs.python.org
Thu Sep 11 23:32:43 CEST 2014


Michael Foord added the comment:

Thanks for this Kushal. It's not quite right though, count and index need to do the same as other attributes looked up with __getattr__. In fact delegating to __getattr__ is probably the easiest way of achieving that. (With the current patch the calls will be incorrect for call.foo.index() or similar I believe.)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21270>
_______________________________________


More information about the Python-bugs-list mailing list