This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rbcollins
Recipients berker.peksag, michael.foord, pkoning, quasipedia, rbcollins
Date 2015-07-15.00:23:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1436919816.14.0.792555414202.issue21750@psf.upfronthosting.co.za>
In-reply-to
Content
I think its worth noting that both the original mock_open and the new one are entirely broken for mocking access to multiple files.

But, the breakage was not deliberate, and as the mock-280 example shows, folk subclassing a test suite will be surprisingly broken vs the long table releases of mock itself.

So, I think its ok to fix this - relying on the second file appearing empty is IMO unlikely, and being more compatible with the prior releases of mock is good.

We probably need to rethink this interface and provide a better one though, so that you can mock a filesystem easily. Thats a different discussion though.
History
Date User Action Args
2015-07-15 00:23:36rbcollinssetrecipients: + rbcollins, michael.foord, quasipedia, berker.peksag, pkoning
2015-07-15 00:23:36rbcollinssetmessageid: <1436919816.14.0.792555414202.issue21750@psf.upfronthosting.co.za>
2015-07-15 00:23:36rbcollinslinkissue21750 messages
2015-07-15 00:23:34rbcollinscreate