summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
diff options
context:
space:
mode:
authorXtreak <tirkarthi@users.noreply.github.com>2018-12-20 16:00:21 (GMT)
committerChris Withers <chris@withers.org>2018-12-20 16:00:21 (GMT)
commit71f82a2f2085464f5ec99c16bce57bd1631733bd (patch)
tree678b8b6206c24b0f86ed1b99c24bbaf21ed517d1 /Lib/unittest
parent292cd6e33104d9f458232a14998fe5c62f7f7e81 (diff)
downloadcpython-71f82a2f2085464f5ec99c16bce57bd1631733bd.zip
cpython-71f82a2f2085464f5ec99c16bce57bd1631733bd.tar.gz
cpython-71f82a2f2085464f5ec99c16bce57bd1631733bd.tar.bz2
Fix mock_open docstring to use readline (#11176)
Diffstat (limited to 'Lib/unittest')
-rw-r--r--Lib/unittest/mock.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py
index 38189c9..3a22a48 100644
--- a/Lib/unittest/mock.py
+++ b/Lib/unittest/mock.py
@@ -2376,7 +2376,7 @@ def mock_open(mock=None, read_data=''):
default) then a `MagicMock` will be created for you, with the API limited
to methods or attributes available on standard file handles.
- `read_data` is a string for the `read` methoddline`, and `readlines` of the
+ `read_data` is a string for the `read`, `readline` and `readlines` of the
file handle to return. This is an empty string by default.
"""
def _readlines_side_effect(*args, **kwargs):