summaryrefslogtreecommitdiffstats
path: root/Doc/library/unittest.mock.rst
diff options
context:
space:
mode:
authorMichael Foord <michael@voidspace.org.uk>2012-04-13 19:51:20 (GMT)
committerMichael Foord <michael@voidspace.org.uk>2012-04-13 19:51:20 (GMT)
commit0682a0c0a925c52bf4d8d3030681b82796bdc6e2 (patch)
tree85a9641ea5b1383282ac196a8068bea31825c867 /Doc/library/unittest.mock.rst
parent656319e58d80478c7aa2a783606f0b50053529ae (diff)
downloadcpython-0682a0c0a925c52bf4d8d3030681b82796bdc6e2.zip
cpython-0682a0c0a925c52bf4d8d3030681b82796bdc6e2.tar.gz
cpython-0682a0c0a925c52bf4d8d3030681b82796bdc6e2.tar.bz2
Minor docstring / docs corrections for unittest.mock
Diffstat (limited to 'Doc/library/unittest.mock.rst')
-rw-r--r--Doc/library/unittest.mock.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst
index f00d29f..ed6775a 100644
--- a/Doc/library/unittest.mock.rst
+++ b/Doc/library/unittest.mock.rst
@@ -236,10 +236,10 @@ the `new_callable` argument to `patch`.
* `wraps`: Item for the mock object to wrap. If `wraps` is not None then
calling the Mock will pass the call through to the wrapped object
- (returning the real result and ignoring `return_value`). Attribute access
- on the mock will return a Mock object that wraps the corresponding
- attribute of the wrapped object (so attempting to access an attribute
- that doesn't exist will raise an `AttributeError`).
+ (returning the real result). Attribute access on the mock will return a
+ Mock object that wraps the corresponding attribute of the wrapped
+ object (so attempting to access an attribute that doesn't exist will
+ raise an `AttributeError`).
If the mock has an explicit `return_value` set then calls are not passed
to the wrapped object and the `return_value` is returned instead.