You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code to reproduce:
def Repro():
fd, fn = tempfile.mkstemp()
fo = os.fdopen(fd, 'w+b')
...
I'd get a stack trace like this:
"myfile.py", line 3, in Repro
fo = os.fdopen(fd, 'w+b')
File ".../fakefs/fake_filesystem.py", line 1208, in _fdopen_ver2
return FakeFileOpen(self.filesystem).Call(file_des, mode=mode)
File ".../fakefs/fake_filesystem.py", line 1918, in Call
file_object = self.filesystem.GetOpenFile(filedes).GetObject()
AttributeError: 'FakeFile' object has no attribute 'GetObject'
The offending part in fake_tempfile calls AddOpenFile() with a FakeFile object,
but according to fake_filesystem.py line 2184 this should be FakeFileWrapper
which is only visible from the FakeFileOpen class.
liulk
Original issue reported on code.google.com by [email protected] on 6 Dec 2013 at 12:09
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 6 Dec 2013 at 12:09The text was updated successfully, but these errors were encountered: