[issue5395] array.fromfile not checking I/O errors

Jan Hosang report at bugs.python.org
Thu Sep 24 12:58:44 CEST 2009


Jan Hosang <jan.hosang at gmail.com> added the comment:

I attached a path for raising IOErrors in fromfile. I also added a 
testcase which failed before.

The test opens a file and closes the file with os.close(fd) without 
telling the file object, so fromfile doesn't notice it's reading from a 
file that is actually closed.

----------
keywords: +patch
nosy: +chuck
Added file: http://bugs.python.org/file14963/array_ioerror.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5395>
_______________________________________


More information about the Python-bugs-list mailing list