Message247050
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 ''. |
|
Date |
User |
Action |
Args |
2015-07-21 19:20:28 | rbcollins | set | recipients:
+ rbcollins, michael.foord, python-dev, quasipedia, berker.peksag, pkoning |
2015-07-21 19:20:28 | rbcollins | set | messageid: <1437506428.11.0.736680741033.issue21750@psf.upfronthosting.co.za> |
2015-07-21 19:20:28 | rbcollins | link | issue21750 messages |
2015-07-21 19:20:27 | rbcollins | create | |
|