[issue36871] Misleading error from unittest.mock's assert_has_calls

Gregory P. Smith report at bugs.python.org
Wed Sep 25 01:39:30 EDT 2019


Gregory P. Smith <greg at krypto.org> added the comment:

i believe the issues surfaces in this are fixed at this point.

of note, my mock_call_test.py example now passes.

i'm not entirely sure that it _should_ pass though, but that depends on what we want create_autospec of a class to do.  should that autospec'd class require instantiation before methods are called?  _that_ is outside the scope of this issue.  As is, the current behavior is likely what people expect to find convenient.

----------
assignee: michael.foord -> gregory.p.smith
resolution:  -> fixed
stage: patch review -> commit review
status: open -> closed

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


More information about the Python-bugs-list mailing list