Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 71f82a2

Browse files
tirkarthicjw296
authored andcommitted
Fix mock_open docstring to use readline (#11176)
1 parent 292cd6e commit 71f82a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/unittest/mock.py

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

0 commit comments

Comments
 (0)