mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Typo fix in mock.patch.
Patch from https://github.com/testing-cabal/mock/issues/215
This commit is contained in:
parent
5329aaa74b
commit
92b3e06517
1 changed files with 1 additions and 1 deletions
|
|
@ -1462,7 +1462,7 @@ def patch(
|
|||
used.
|
||||
|
||||
A more powerful form of `spec` is `autospec`. If you set `autospec=True`
|
||||
then the mock with be created with a spec from the object being replaced.
|
||||
then the mock will be created with a spec from the object being replaced.
|
||||
All attributes of the mock will also have the spec of the corresponding
|
||||
attribute of the object being replaced. Methods and functions being
|
||||
mocked will have their arguments checked and will raise a `TypeError` if
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue