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 pkoning
Recipients berker.peksag, michael.foord, pkoning, python-dev, quasipedia, rbcollins
Date 2015-07-21.19:48:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1437508086.02.0.367488264649.issue21750@psf.upfronthosting.co.za>
In-reply-to
Content
Sure, you can use a vfs.  That's true for a lot of mock functions; the benefit of mock, including mock_open, is that it provides an easier and better packaged way.  The behavior expected is "be like a file".  So in that last example, if you open it twice, you've got two views of the same "file" data, independent of each other, and reads of each file will see that data in full.  A.read() has no effect on B.read().

I don't think I understand what the latest discussion/issue is all about.
History
Date User Action Args
2015-07-21 19:48:06pkoningsetrecipients: + pkoning, rbcollins, michael.foord, python-dev, quasipedia, berker.peksag
2015-07-21 19:48:06pkoningsetmessageid: <1437508086.02.0.367488264649.issue21750@psf.upfronthosting.co.za>
2015-07-21 19:48:06pkoninglinkissue21750 messages
2015-07-21 19:48:05pkoningcreate