Author rbcollins
Recipients berker.peksag, michael.foord, pkoning, python-dev, quasipedia, rbcollins
Date 2015-07-23.13:42:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>

So the problem is that its never been a high fidelity thing in that sense.... In that:
3.3 -> read() is a constant for the thing opened from the mock
3.4 -> read() works once and only once across all opened files from the mock
3.5 today -> read() works once for *each* opened file from the mock, but you *can't access* each file object (because the mock.returnvalue is replaced each time, which is unmocklike)

With this patch: -> read() works once for each opened file, as long as the sequence open -> read -> open -> read is followed, and mock.returnvalue is a constant, mocklike.
Date User Action Args
2015-07-23 13:42:42rbcollinssetrecipients: + rbcollins, michael.foord, python-dev, quasipedia, berker.peksag, pkoning
2015-07-23 13:42:42rbcollinssetmessageid: <>
2015-07-23 13:42:42rbcollinslinkissue21750 messages
2015-07-23 13:42:41rbcollinscreate