Skip to content
Snippets Groups Projects
Unverified Commit 10bf0a9a authored by Joe's avatar Joe Committed by GitHub
Browse files

doc: fix a typo in unittest.mock.rst (GH-30227)

parent c1d7a6be
No related branches found
No related tags found
No related merge requests found
......@@ -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::
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment