[Python-checkins] cpython (merge 3.5 -> default): Typo fix in mock.patch.

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


https://hg.python.org/cpython/rev/c635242ca3f0
changeset:   96930:c635242ca3f0
parent:      96927:92a90e469424
parent:      96929:1c2c989082b0
user:        Robert Collins <rbtcollins at hp.com>
date:        Fri Jul 17 22:00:45 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
@@ -1480,7 +1480,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