We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bee660e commit f1f54c8Copy full SHA for f1f54c8
Doc/library/unittest.mock.rst
@@ -1515,7 +1515,7 @@ attribute in a class) that does not exist will fail with :exc:`AttributeError`::
1515
>>> test()
1516
Traceback (most recent call last):
1517
...
1518
- 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'
1519
1520
but adding ``create=True`` in the call to :func:`patch` will make the previous example
1521
work as expected::
0 commit comments