]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37008: make mock_open handle able to honor next() (GH-13492)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 23 May 2019 10:21:11 +0000 (03:21 -0700)
committerGitHub <noreply@github.com>
Thu, 23 May 2019 10:21:11 +0000 (03:21 -0700)
commit7cc47e9c19b7d67c8f08df15a413d14cf69f45da
tree13545214d104a852b9df40ccf40feb688a2ca7c4
parent0416d6f05a96e0f1b3751aa97abfffe6d3323976
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
(cherry picked from commit 394119afc6611f17bac96f5ec6fefa00000ae795)

Co-authored-by: Damien Nadé <Anvil@users.noreply.github.com>
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]