From 71f82a2f2085464f5ec99c16bce57bd1631733bd Mon Sep 17 00:00:00 2001 From: Xtreak Date: Thu, 20 Dec 2018 21:30:21 +0530 Subject: [PATCH] Fix mock_open docstring to use readline (#11176) --- Lib/unittest/mock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index 38189c9aec2..3a22a48c997 100644 --- a/Lib/unittest/mock.py +++ b/Lib/unittest/mock.py @@ -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):