]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41877: Improve docs for assert misspellings check in mock (GH-23729)
authorvabr-g <vabr@google.com>
Thu, 10 Dec 2020 18:35:28 +0000 (19:35 +0100)
committerGitHub <noreply@github.com>
Thu, 10 Dec 2020 18:35:28 +0000 (10:35 -0800)
commit9fc571359af9320fddbe4aa2710a767f168c1707
tree62ac7bab3185ac676c211eb4d5b530c65f46e052
parentb5c7b38f5ebbc84b5b80192db1743d3e1cdcf4c5
bpo-41877: Improve docs for assert misspellings check in mock (GH-23729)

This is a follow-up to
https://github.com/python/cpython/commit/4662fa9bfe4a849fe87bfb321d8ef0956c89a772.
That original commit expanded guards against misspelling assertions on
mocks. This follow-up updates the documentation and improves the error
message by pointing out the potential cause and solution.

Automerge-Triggered-By: GH:gpshead
Doc/library/unittest.mock.rst
Lib/unittest/mock.py
Lib/unittest/test/testmock/testmock.py
Misc/NEWS.d/next/Library/2020-12-10-09-24-44.bpo-41877.iJSCvM.rst [new file with mode: 0644]