]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Improve error message when mock.assert_has_calls fails (GH-8205)
authordavidair <davidair@users.noreply.github.com>
Fri, 17 Aug 2018 19:09:58 +0000 (15:09 -0400)
committerGregory P. Smith <greg@krypto.org>
Fri, 17 Aug 2018 19:09:58 +0000 (12:09 -0700)
commit2b32da2fea1f077bb07a175f97ad8241e5605169
treefe64646c6d5ed966536ecb846ac59c8e865ebd15
parenta2510732da4c75789cc1750a034bdc9d9fdffb5b
Improve error message when mock.assert_has_calls fails (GH-8205)

This makes the assertion error message more useful, aiding debugging.

Thanks @davidair!
Lib/unittest/mock.py
Misc/NEWS.d/next/Tests/2018-07-10-18-53-46.bpo-0.UBQJBc.rst [new file with mode: 0644]