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

Roundup Robot report at bugs.python.org
Thu Sep 12 06:52:52 EDT 2019


Roundup Robot <devnull at psf.upfronthosting.co.za> added the comment:


New changeset db0d8a5b2c803d30d9df436e00b6627ec8e09a13 by Michael Foord (Miss Islington (bot)) in branch '3.8':
bpo-37972: unittest.mock._Call now passes on __getitem__ to the __getattr__ chaining so that call() can be subscriptable (GH-15565) (GH-15965)
https://github.com/python/cpython/commit/db0d8a5b2c803d30d9df436e00b6627ec8e09a13


----------

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


More information about the Python-bugs-list mailing list