summaryrefslogtreecommitdiffstats
path: root/Doc/library/unittest.mock.rst
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-12-26 11:51:42 (GMT)
committerGitHub <noreply@github.com>2021-12-26 11:51:42 (GMT)
commitcfdb2302f48b4da5cf4ee78c092edf1f447ae494 (patch)
tree38298787c50c0af7a10648ac42c9492907a55957 /Doc/library/unittest.mock.rst
parentd968e422efa2050ff2c88467e7cea61ba5c55576 (diff)
downloadcpython-cfdb2302f48b4da5cf4ee78c092edf1f447ae494.zip
cpython-cfdb2302f48b4da5cf4ee78c092edf1f447ae494.tar.gz
cpython-cfdb2302f48b4da5cf4ee78c092edf1f447ae494.tar.bz2
doc: fix a typo in unittest.mock.rst (GH-30227)
(cherry picked from commit 10bf0a9ac3c9bbde2fa8989d9435462f0e7da545) Co-authored-by: Joe <nigelchiang@outlook.com>
Diffstat (limited to 'Doc/library/unittest.mock.rst')
-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 d0640b4..4d74f9c 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::