]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
doc: fix a typo in unittest.mock.rst (GH-30227)
authorJoe <nigelchiang@outlook.com>
Sun, 26 Dec 2021 11:09:17 +0000 (19:09 +0800)
committerGitHub <noreply@github.com>
Sun, 26 Dec 2021 11:09:17 +0000 (13:09 +0200)
Doc/library/unittest.mock.rst

index 0856c3fbded08acd5c0884fadacecb9e8a8f1982..69f1035703ba54ad5d31e29792b8407488ba6d7f 100644 (file)
@@ -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::