diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2014-02-26 15:34:43 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2014-02-26 15:34:43 (GMT) |
commit | 5ea5d2c3f7ac3a308091bbbf11ab4f473571a628 (patch) | |
tree | 2ceca26834f7e66eff5a2de25b73e9cf84c89f00 /Doc/library/unittest.mock.rst | |
parent | 7b80716cffde6825ae3f17226a1788063bbebd91 (diff) | |
download | cpython-5ea5d2c3f7ac3a308091bbbf11ab4f473571a628.zip cpython-5ea5d2c3f7ac3a308091bbbf11ab4f473571a628.tar.gz cpython-5ea5d2c3f7ac3a308091bbbf11ab4f473571a628.tar.bz2 |
Issue #20759: Fix some typos in the mock docs.
Diffstat (limited to 'Doc/library/unittest.mock.rst')
-rw-r--r-- | Doc/library/unittest.mock.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst index 6b9805c..f805df3 100644 --- a/Doc/library/unittest.mock.rst +++ b/Doc/library/unittest.mock.rst @@ -938,7 +938,7 @@ method: .. [#] The only exceptions are magic methods and attributes (those that have leading and trailing double underscores). Mock doesn't create these but - instead of raises an ``AttributeError``. This is because the interpreter + instead raises an ``AttributeError``. This is because the interpreter will often implicitly request these methods, and gets *very* confused to get a new Mock object when it expects a magic method. If you need magic method support see :ref:`magic methods <magic-methods>`. @@ -1489,7 +1489,7 @@ Patching Descriptors and Proxy Objects Both patch_ and patch.object_ correctly patch and restore descriptors: class methods, static methods and properties. You should patch these on the *class* rather than an instance. They also work with *some* objects -that proxy attribute access, like the `django setttings object +that proxy attribute access, like the `django settings object <http://www.voidspace.org.uk/python/weblog/arch_d7_2010_12_04.shtml#e1198>`_. |