Skip to content

Commit 5fe170d

Browse files
miss-islingtontirkarthi
authored andcommitted
Fix mock_open docstring to use readline (GH-11266)
(cherry picked from commit 71f82a2) Co-authored-by: Xtreak <[email protected]>
1 parent 0198f52 commit 5fe170d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/unittest/mock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2352,7 +2352,7 @@ def mock_open(mock=None, read_data=''):
23522352
default) then a `MagicMock` will be created for you, with the API limited
23532353
to methods or attributes available on standard file handles.
23542354
2355-
`read_data` is a string for the `read` methoddline`, and `readlines` of the
2355+
`read_data` is a string for the `read`, `readline` and `readlines` of the
23562356
file handle to return. This is an empty string by default.
23572357
"""
23582358
def _readlines_side_effect(*args, **kwargs):

0 commit comments

Comments
 (0)