From: Joe Date: Sun, 26 Dec 2021 11:09:17 +0000 (+0800) Subject: doc: fix a typo in unittest.mock.rst (GH-30227) X-Git-Tag: v3.11.0a4~140 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=10bf0a9ac3c9bbde2fa8989d9435462f0e7da545;p=thirdparty%2FPython%2Fcpython.git doc: fix a typo in unittest.mock.rst (GH-30227) --- diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst index 0856c3fbded0..69f1035703ba 100644 --- a/Doc/library/unittest.mock.rst +++ b/Doc/library/unittest.mock.rst @@ -1516,7 +1516,7 @@ attribute in a class) that does not exist will fail with :exc:`AttributeError`:: >>> test() Traceback (most recent call last): ... - AttributeError: does not have the attribute 'non_existing' + AttributeError: does not have the attribute 'non_existing_attribute' but adding ``create=True`` in the call to :func:`patch` will make the previous example work as expected::