Commit 265d073
Fix documented default of read_data in unittest.mock.mock_open
The documented signature showed read_data=None, but the actual default is the empty string -- Lib/unittest/mock.py, the function's docstring, and inspect.signature all agree. The code default changed from None to '' in 2012 (0dccf65); the docs were never updated.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 5b38519 commit 265d073
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2539 | 2539 | | |
2540 | 2540 | | |
2541 | 2541 | | |
2542 | | - | |
| 2542 | + | |
2543 | 2543 | | |
2544 | 2544 | | |
2545 | 2545 | | |
| |||
0 commit comments