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