[issue21478] mock calls don't propagate to parent (autospec)

Jack Wong report at bugs.python.org
Thu Jul 11 16:20:01 EDT 2019


Jack Wong <ajackwong at gmail.com> added the comment:

Thanks, Karthikeyan! I applied your change to Lib/unittest/mock.py, and it fixed the bug for me. I confirmed that calls to the child mock now appear in the parent's mock_calls in my test suite. Your PR looks good to me.

----------

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


More information about the Python-bugs-list mailing list