diff options
author | Michael Foord <michael@voidspace.org.uk> | 2012-04-13 16:59:04 +0100 |
---|---|---|
committer | Michael Foord <michael@voidspace.org.uk> | 2012-04-13 16:59:04 +0100 |
commit | 021c8f04ba6dd92955fe02b988f29049a3540212 (patch) | |
tree | e70435db369567ff0359368d85c98abb00eee488 | |
parent | ecbd9dabe4f4311052e9b15500fa6043a02d24ec (diff) | |
download | mock-021c8f04ba6dd92955fe02b988f29049a3540212.tar.gz |
Minor update for mock_open docs
-rw-r--r-- | docs/helpers.txt | 1 |
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: |