]> granicus.if.org Git - python/commitdiff
Typo fix in mock.patch.
authorRobert Collins <rbtcollins@hp.com>
Fri, 17 Jul 2015 09:58:36 +0000 (21:58 +1200)
committerRobert Collins <rbtcollins@hp.com>
Fri, 17 Jul 2015 09:58:36 +0000 (21:58 +1200)
Patch from https://github.com/testing-cabal/mock/issues/215

Lib/unittest/mock.py

index 2602e1be64ff8707f4c708086efe193ed907ff91..74f918a5f345b2d2eb9ec9455e4eeac5ff3e6e45 100644 (file)
@@ -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