]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-31855: unittest.mock.mock_open() results now respects the argument of read([size...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 7 May 2019 12:34:48 +0000 (05:34 -0700)
committerChris Withers <chris@withers.org>
Tue, 7 May 2019 12:34:48 +0000 (13:34 +0100)
commita6516f89aa0f416c7514ac364bb48ac7d1455487
tree9b7eaeca6c96b2266077d6a754b571fd643b1a3d
parentffa29b5aca1aaeae46af2582c401ef0ed20d4153
bpo-31855: unittest.mock.mock_open() results now respects the argument of read([size]) (GH-11521) (#13152)

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

Co-Authored-By: remilapeyre <remi.lapeyre@henki.fr>
(cherry picked from commit 11a8832c98b3db78727312154dd1d3ba76d639ec)

Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
Lib/unittest/mock.py
Lib/unittest/test/testmock/testwith.py
Misc/NEWS.d/next/Library/2019-01-11-17-09-15.bpo-31855.PlhfsX.rst [new file with mode: 0644]