]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix mock_open docstring to use readline (#11176)
authorXtreak <tirkarthi@users.noreply.github.com>
Thu, 20 Dec 2018 16:00:21 +0000 (21:30 +0530)
committerChris Withers <chris@withers.org>
Thu, 20 Dec 2018 16:00:21 +0000 (16:00 +0000)
Lib/unittest/mock.py

index 38189c9aec2ea332e4564f6117c3d4ea3ca9859a..3a22a48c997f4cbab455db1c7d662a5ed8ea9bdb 100644 (file)
@@ -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):