diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-12-26 11:51:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-26 11:51:42 (GMT) |
commit | cfdb2302f48b4da5cf4ee78c092edf1f447ae494 (patch) | |
tree | 38298787c50c0af7a10648ac42c9492907a55957 /Doc/library/unittest.mock.rst | |
parent | d968e422efa2050ff2c88467e7cea61ba5c55576 (diff) | |
download | cpython-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.rst | 2 |
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:: |