summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorPetter Strandmark <petter.strandmark@gmail.com>2018-10-28 20:37:10 (GMT)
committerVictor Stinner <vstinner@redhat.com>2018-10-28 20:37:10 (GMT)
commit47d94241a383e2b8a2c40e81d12d40d5947fb170 (patch)
treeb4c6d167ab2652014eb99815eb870d640341a82f /Misc
parent18032632ab27eed51d705c2be7b64bac708279bf (diff)
downloadcpython-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/ACKS1
-rw-r--r--Misc/NEWS.d/next/Library/2018-10-25-09-59-00.bpo-35047.abbaa.rst3
2 files changed, 4 insertions, 0 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index 5014584..043d604 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -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