]> granicus.if.org Git - python/commit
bpo-37008: make mock_open handle able to honor next() (GH-13492)
authorDamien Nadé <Anvil@users.noreply.github.com>
Thu, 23 May 2019 10:03:25 +0000 (12:03 +0200)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 23 May 2019 10:03:25 +0000 (03:03 -0700)
commit394119afc6611f17bac96f5ec6fefa00000ae795
tree27fc4f991110ed5d3bf09bb0e3e3051b6eddcc91
parent51aa35e9e17eef60d04add9619fe2a7eb938358c
bpo-37008: make mock_open handle able to honor next() (GH-13492)

I've reported the issue on https://bugs.python.org/issue37008 and now I'm trying to bring a solution to this minor issue.

I think it could be trivially backported to 3.7 branch.

https://bugs.python.org/issue37008
Lib/unittest/mock.py
Lib/unittest/test/testmock/testmock.py
Lib/unittest/test/testmock/testwith.py
Misc/NEWS.d/next/Library/2019-05-22-15-26-08.bpo-37008.WPbv31.rst [new file with mode: 0644]