diff options
author | Robert Collins <rbtcollins@hp.com> | 2015-07-17 09:58:36 (GMT) |
---|---|---|
committer | Robert Collins <rbtcollins@hp.com> | 2015-07-17 09:58:36 (GMT) |
commit | 92b3e065172940f546374c4285988b69497c88f5 (patch) | |
tree | c7087c0a51bc494ce7b347f97d8efddc725cebb2 /Lib | |
parent | 5329aaa74bfe48a3be4fcd15d070bacfde682267 (diff) | |
download | cpython-92b3e065172940f546374c4285988b69497c88f5.zip cpython-92b3e065172940f546374c4285988b69497c88f5.tar.gz cpython-92b3e065172940f546374c4285988b69497c88f5.tar.bz2 |
Typo fix in mock.patch.
Patch from https://github.com/testing-cabal/mock/issues/215
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/unittest/mock.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index 2602e1b..74f918a 100644 --- a/Lib/unittest/mock.py +++ b/Lib/unittest/mock.py @@ -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 |