]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
doc: fix a typo in unittest.mock.rst (GH-30227) (GH-30263)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 26 Dec 2021 11:51:57 +0000 (03:51 -0800)
committerGitHub <noreply@github.com>
Sun, 26 Dec 2021 11:51:57 +0000 (13:51 +0200)
(cherry picked from commit 10bf0a9ac3c9bbde2fa8989d9435462f0e7da545)

Co-authored-by: Joe <nigelchiang@outlook.com>
Doc/library/unittest.mock.rst

index 3c74b61779d4782f3b1fc4eaf31104186daa6c86..3fbb1b6b83a7600c6a0795b777562311fff1d9b8 100644 (file)
@@ -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::