mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-44534: fix wording and docstring sync in unittest.Mock GH27000
This commit is contained in:
parent
a9a69bb3ea
commit
abb08e3af6
2 changed files with 6 additions and 1 deletions
|
@ -1215,6 +1215,11 @@ class Mock(CallableMixin, NonCallableMock):
|
|||
this is a new Mock (created on first access). See the
|
||||
`return_value` attribute.
|
||||
|
||||
* `unsafe`: By default, accessing any attribute whose name starts with
|
||||
*assert*, *assret*, *asert*, *aseert* or *assrt* will raise an
|
||||
AttributeError. Passing `unsafe=True` will allow access to
|
||||
these attributes.
|
||||
|
||||
* `wraps`: Item for the mock object to wrap. If `wraps` is not None then
|
||||
calling the Mock will pass the call through to the wrapped object
|
||||
(returning the real result). Attribute access on the mock will return a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue