summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorJoe <nigelchiang@outlook.com>2021-12-26 11:09:17 (GMT)
committerGitHub <noreply@github.com>2021-12-26 11:09:17 (GMT)
commit10bf0a9ac3c9bbde2fa8989d9435462f0e7da545 (patch)
tree38f1b0be3913baf01a8277dc9cf79768f3ea7546 /Doc
parentc1d7a6bed9f2bb8cb7612d196fc0caba016fa98c (diff)
downloadcpython-10bf0a9ac3c9bbde2fa8989d9435462f0e7da545.zip
cpython-10bf0a9ac3c9bbde2fa8989d9435462f0e7da545.tar.gz
cpython-10bf0a9ac3c9bbde2fa8989d9435462f0e7da545.tar.bz2
doc: fix a typo in unittest.mock.rst (GH-30227)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/unittest.mock.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst
index 0856c3f..69f1035 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: <module 'sys' (built-in)> does not have the attribute 'non_existing'
+ AttributeError: <module 'sys' (built-in)> 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::