Skip to content

Commit cfdb230

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

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
@@ -1516,7 +1516,7 @@ attribute in a class) that does not exist will fail with :exc:`AttributeError`::
15161516
>>> test()
15171517
Traceback (most recent call last):
15181518
...
1519-
AttributeError: <module 'sys' (built-in)> does not have the attribute 'non_existing'
1519+
AttributeError: <module 'sys' (built-in)> does not have the attribute 'non_existing_attribute'
15201520

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

0 commit comments

Comments
 (0)