We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0198f52 commit 5fe170dCopy full SHA for 5fe170d
Lib/unittest/mock.py
@@ -2352,7 +2352,7 @@ def mock_open(mock=None, read_data=''):
2352
default) then a `MagicMock` will be created for you, with the API limited
2353
to methods or attributes available on standard file handles.
2354
2355
- `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
2356
file handle to return. This is an empty string by default.
2357
"""
2358
def _readlines_side_effect(*args, **kwargs):
0 commit comments