[Python-checkins] cpython (3.4): Typo fix in mock.patch.

robert.collins python-checkins at python.org
Fri Jul 17 12:00:59 CEST 2015


https://hg.python.org/cpython/rev/5439faa1f604
changeset:   96928:5439faa1f604
branch:      3.4
parent:      96925:41d55ac50dea
user:        Robert Collins <rbtcollins at hp.com>
date:        Fri Jul 17 21:58:36 2015 +1200
summary:
  Typo fix in mock.patch.

Patch from https://github.com/testing-cabal/mock/issues/215

files:
  Lib/unittest/mock.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py
--- a/Lib/unittest/mock.py
+++ b/Lib/unittest/mock.py
@@ -1462,7 +1462,7 @@
     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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list