bpo-31855: unittest.mock.mock_open() results now respects the argument of read([size]) (GH-11521)

unittest.mock.mock_open() results now respects the argument of read([size])

Co-Authored-By: remilapeyre <remi.lapeyre@henki.fr>
This commit is contained in:
Rémi Lapeyre 2019-05-07 12:48:36 +02:00 committed by Chris Withers
parent ad4ed87241
commit 11a8832c98
3 changed files with 21 additions and 25 deletions

View file

@ -0,0 +1,2 @@
:func:`unittest.mock.mock_open` results now respects the argument of read([size]).
Patch contributed by Rémi Lapeyre.