What steps will reproduce the problem?
>>> from fs.osfs import OSFS
>>> from fs.wrapfs.readonlyfs import ReadOnlyFS
>>> myfs = OSFS('.')
>>> myfs.setcontents('testfile', 'something or other\n')
>>> rofs = ReadOnlyFS(myfs)
>>> f = rofs.open('testfile', 'r+')
>>> f.read()
'something or other\n'
>>> f.write('this should fail\n')
>>> f.close()
>>> rofs.open('testfile','r').read()
'something or other\nthis should fail\n'
What is the expected output?
I'd expect the file to not be modifed.
Original issue reported on code.google.com by gc...@loowis.durge.org on 1 Sep 2012 at 11:38
Original issue reported on code.google.com by
gc...@loowis.durge.org
on 1 Sep 2012 at 11:38