mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
doc: fix a typo in unittest.mock.rst (GH-30227)
This commit is contained in:
parent
c1d7a6bed9
commit
10bf0a9ac3
1 changed files with 1 additions and 1 deletions
|
@ -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::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue