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
|
@ -262,7 +262,7 @@ the *new_callable* argument to :func:`patch`.
|
|||
this is a new Mock (created on first access). See the
|
||||
:attr:`return_value` attribute.
|
||||
|
||||
* *unsafe*: By default, accessing any attribute with name starting with
|
||||
* *unsafe*: By default, accessing any attribute whose name starts with
|
||||
*assert*, *assret*, *asert*, *aseert* or *assrt* will raise an
|
||||
:exc:`AttributeError`. Passing ``unsafe=True`` will allow access to
|
||||
these attributes.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue