bpo-44534: fix wording and docstring sync in unittest.Mock GH27000

This commit is contained in:
Jack DeVries 2021-07-05 02:52:32 -04:00 committed by GitHub
parent a9a69bb3ea
commit abb08e3af6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -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.