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.
unittest.mock.mock_open
read_data
1 parent 9cbbb07 commit 348622aCopy full SHA for 348622a
1 file changed
Doc/library/unittest.mock.rst
@@ -2539,7 +2539,7 @@ Alternatively you can just use ``vars(my_mock)`` (instance members) and
2539
mock_open
2540
~~~~~~~~~
2541
2542
-.. function:: mock_open(mock=None, read_data=None)
+.. function:: mock_open(mock=None, read_data='')
2543
2544
A helper function to create a mock to replace the use of :func:`open`. It works
2545
for :func:`open` called directly or used as a context manager.
0 commit comments