Skip to content

Commit f1f54c8

Browse files
miss-islingtonj178
andauthored
doc: fix a typo in unittest.mock.rst (GH-30227) (GH-30263)
(cherry picked from commit 10bf0a9) Co-authored-by: Joe <[email protected]>
1 parent bee660e commit f1f54c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/unittest.mock.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,7 @@ attribute in a class) that does not exist will fail with :exc:`AttributeError`::
15151515
>>> test()
15161516
Traceback (most recent call last):
15171517
...
1518-
AttributeError: <module 'sys' (built-in)> does not have the attribute 'non_existing'
1518+
AttributeError: <module 'sys' (built-in)> does not have the attribute 'non_existing_attribute'
15191519

15201520
but adding ``create=True`` in the call to :func:`patch` will make the previous example
15211521
work as expected::

0 commit comments

Comments
 (0)