diff options
author | Petter Strandmark <petter.strandmark@gmail.com> | 2018-10-28 20:37:10 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2018-10-28 20:37:10 (GMT) |
commit | 47d94241a383e2b8a2c40e81d12d40d5947fb170 (patch) | |
tree | b4c6d167ab2652014eb99815eb870d640341a82f /Misc | |
parent | 18032632ab27eed51d705c2be7b64bac708279bf (diff) | |
download | cpython-47d94241a383e2b8a2c40e81d12d40d5947fb170.zip cpython-47d94241a383e2b8a2c40e81d12d40d5947fb170.tar.gz cpython-47d94241a383e2b8a2c40e81d12d40d5947fb170.tar.bz2 |
bpo-35047, unittest.mock: Better error messages on assert_called_xxx failures (GH-10090)
unittest.mock now includes mock calls in exception messages if
assert_not_called, assert_called_once, or assert_called_once_with
fails.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2018-10-25-09-59-00.bpo-35047.abbaa.rst | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -1570,6 +1570,7 @@ Daniel Stokes Michael Stone Serhiy Storchaka Ken Stox +Petter Strandmark Charalampos Stratakis Dan Stromberg Donald Stufft diff --git a/Misc/NEWS.d/next/Library/2018-10-25-09-59-00.bpo-35047.abbaa.rst b/Misc/NEWS.d/next/Library/2018-10-25-09-59-00.bpo-35047.abbaa.rst new file mode 100644 index 0000000..12eda27 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-10-25-09-59-00.bpo-35047.abbaa.rst @@ -0,0 +1,3 @@ +``unittest.mock`` now includes mock calls in exception messages if +``assert_not_called``, ``assert_called_once``, or ``assert_called_once_with`` +fails. Patch by Petter Strandmark.
\ No newline at end of file |