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

Samuel Freilich report at bugs.python.org
Thu Sep 12 07:09:55 EDT 2019


Samuel Freilich <sfreilich at google.com> added the comment:

Check out my PR, which solves a much smaller issue: It fixes a bug in the exception raising logic in assert_has_calls (and _awaits) which makes complicated problems like the one you mention much harder to debug.

Also it has tests!

----------

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


More information about the Python-bugs-list mailing list