diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-12-26 11:51:57 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-26 11:51:57 (GMT) |
| commit | f1f54c8fb94de6176767f2163a4ed80a9660494a (patch) | |
| tree | 765976f48472269359a83ba5bf29cfba36c90d64 /Doc | |
| parent | bee660e46ae2a051400177dcd758d95b5b4a6fcc (diff) | |
| download | cpython-f1f54c8fb94de6176767f2163a4ed80a9660494a.zip cpython-f1f54c8fb94de6176767f2163a4ed80a9660494a.tar.gz cpython-f1f54c8fb94de6176767f2163a4ed80a9660494a.tar.bz2 | |
doc: fix a typo in unittest.mock.rst (GH-30227) (GH-30263)
(cherry picked from commit 10bf0a9ac3c9bbde2fa8989d9435462f0e7da545)
Co-authored-by: Joe <nigelchiang@outlook.com>
Diffstat (limited to 'Doc')
| -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 3c74b61..3fbb1b6 100644 --- a/Doc/library/unittest.mock.rst +++ b/Doc/library/unittest.mock.rst @@ -1515,7 +1515,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:: |
