summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Collins <rbtcollins@hp.com>2015-07-17 22:00:45 +1200
committerRobert Collins <rbtcollins@hp.com>2015-07-17 22:00:45 +1200
commiteaf3ca891f978df1c857feac56793aee0708554c (patch)
tree80e82219ec0d37c539ec3d8a546930b98e92ecbf
parentccea2d6d99b8eec511684f89799d426a80ac3a7e (diff)
parent1a8008127207e70b13ceec651524da7f2c4831bc (diff)
downloadcpython-git-eaf3ca891f978df1c857feac56793aee0708554c.tar.gz
Typo fix in mock.patch.
Patch from https://github.com/testing-cabal/mock/issues/215
-rw-r--r--Lib/unittest/mock.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py
index 86043b0cef..e10d31c021 100644
--- a/Lib/unittest/mock.py
+++ b/Lib/unittest/mock.py
@@ -1480,7 +1480,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