Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Doc/library/unittest.mock.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2539,7 +2539,7 @@ Alternatively you can just use ``vars(my_mock)`` (instance members) and
mock_open
~~~~~~~~~

.. function:: mock_open(mock=None, read_data=None)
.. function:: mock_open(mock=None, read_data='')

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