summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Foord <michael@voidspace.org.uk>2012-04-13 16:59:04 +0100
committerMichael Foord <michael@voidspace.org.uk>2012-04-13 16:59:04 +0100
commit021c8f04ba6dd92955fe02b988f29049a3540212 (patch)
treee70435db369567ff0359368d85c98abb00eee488
parentecbd9dabe4f4311052e9b15500fa6043a02d24ec (diff)
downloadmock-021c8f04ba6dd92955fe02b988f29049a3540212.tar.gz
Minor update for mock_open docs
-rw-r--r--docs/helpers.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/helpers.txt b/docs/helpers.txt
index 6bd2950..571b71d 100644
--- a/docs/helpers.txt
+++ b/docs/helpers.txt
@@ -268,6 +268,7 @@ enough that a helper function is useful.
.. doctest::
+ >>> from mock import mock_open
>>> m = mock_open()
>>> with patch('__main__.open', m, create=True):
... with open('foo', 'w') as h: