Author rbcollins
Recipients berker.peksag, michael.foord, pkoning, python-dev, quasipedia, rbcollins
Date 2015-07-21.19:20:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1437506428.11.0.736680741033.issue21750@psf.upfronthosting.co.za>
In-reply-to
Content
But - its worth discussing. Perhaps we should roll this all back, and just say 'use a vfs layer for tests like this'. The problem in doing that, is that the
@patch
def test_foo...

use case is actually pretty common IME, and this conflicts with the 
@patch
...
A = open()
B = open()
A.read()
B.read()

case where the reset in the open() side effect will cause B.read to end up returning ''.
History
Date User Action Args
2015-07-21 19:20:28rbcollinssetrecipients: + rbcollins, michael.foord, python-dev, quasipedia, berker.peksag, pkoning
2015-07-21 19:20:28rbcollinssetmessageid: <1437506428.11.0.736680741033.issue21750@psf.upfronthosting.co.za>
2015-07-21 19:20:28rbcollinslinkissue21750 messages
2015-07-21 19:20:27rbcollinscreate