Author pkoning
Recipients berker.peksag, michael.foord, pkoning, python-dev, quasipedia, rbcollins
Date 2015-07-21.23:54:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1437522874.2.0.81205895553.issue21750@psf.upfronthosting.co.za>
In-reply-to
Content
So if I understand right, it seems to me the 3.5/mock 1.1.4 behavior is correct.  mock_open(read_data="f") acts like a file that contains f, and m() acts like an open() of that file.  So if I call open once, I should read the f, then EOF.  If I open twice, then each stream (x and y) is independent, and each sees f then EOF.
History
Date User Action Args
2015-07-21 23:54:34pkoningsetrecipients: + pkoning, rbcollins, michael.foord, python-dev, quasipedia, berker.peksag
2015-07-21 23:54:34pkoningsetmessageid: <1437522874.2.0.81205895553.issue21750@psf.upfronthosting.co.za>
2015-07-21 23:54:34pkoninglinkissue21750 messages
2015-07-21 23:54:34pkoningcreate