[issue37972] unittest.mock.call does not chain __getitem__ to another _Call object

Ben Hsing report at bugs.python.org
Wed Sep 11 08:45:03 EDT 2019


Ben Hsing <blhsing at gmail.com> added the comment:

Agreed. I've submitted a new commit with the call chaining behavior now generalized for all dunder methods by delegating the resolution of all attributes not directly in the _Call object's __dict__ keys to the getattr method.

----------
status: open -> pending

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


More information about the Python-bugs-list mailing list