Skip to content

Commit 348622a

Browse files
[3.13] gh-151443: Fix documented default of unittest.mock.mock_open's read_data parameter (GH-151444)
(cherry picked from commit 9ad6ba0) Co-authored-by: Shardul Deshpande <iamsharduld@users.noreply.github.com>
1 parent 9cbbb07 commit 348622a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/unittest.mock.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2539,7 +2539,7 @@ Alternatively you can just use ``vars(my_mock)`` (instance members) and
25392539
mock_open
25402540
~~~~~~~~~
25412541

2542-
.. function:: mock_open(mock=None, read_data=None)
2542+
.. function:: mock_open(mock=None, read_data='')
25432543

25442544
A helper function to create a mock to replace the use of :func:`open`. It works
25452545
for :func:`open` called directly or used as a context manager.

0 commit comments

Comments
 (0)