[Python-checkins] cpython (3.3): Fix typo in mock docs.

andrew.svetlov python-checkins at python.org
Wed Oct 31 10:30:28 CET 2012


http://hg.python.org/cpython/rev/78f584e055eb
changeset:   80080:78f584e055eb
branch:      3.3
parent:      80078:c21c894eefe1
user:        Andrew Svetlov <andrew.svetlov at gmail.com>
date:        Wed Oct 31 11:29:52 2012 +0200
summary:
  Fix typo in mock docs.

files:
  Doc/library/unittest.mock.rst |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst
--- a/Doc/library/unittest.mock.rst
+++ b/Doc/library/unittest.mock.rst
@@ -1,3 +1,4 @@
+
 :mod:`unittest.mock` --- mock object library
 ============================================
 
@@ -646,7 +647,7 @@
     which have no meaning on a non-callable mock.
 
 Mock objects that use a class or an instance as a `spec` or `spec_set` are able
-to pass `isintance` tests:
+to pass `isinstance` tests:
 
     >>> mock = Mock(spec=SomeClass)
     >>> isinstance(mock, SomeClass)

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


More information about the Python-checkins mailing list