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 d968e42 commit cfdb230Copy full SHA for cfdb230
Doc/library/unittest.mock.rst
@@ -1516,7 +1516,7 @@ attribute in a class) that does not exist will fail with :exc:`AttributeError`::
1516
>>> test()
1517
Traceback (most recent call last):
1518
...
1519
- 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'
1520
1521
but adding ``create=True`` in the call to :func:`patch` will make the previous example
1522
work as expected::
0 commit comments