Thanks to visit codestin.com Credit goes to github.com
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 292cd6e commit 71f82a2Copy full SHA for 71f82a2
1 file changed
Lib/unittest/mock.py
@@ -2376,7 +2376,7 @@ def mock_open(mock=None, read_data=''):
2376
default) then a `MagicMock` will be created for you, with the API limited
2377
to methods or attributes available on standard file handles.
2378
2379
- `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
2380
file handle to return. This is an empty string by default.
2381
"""
2382
def _readlines_side_effect(*args, **kwargs):
0 commit comments