[issue5395] array.fromfile not checking I/O errors
Jan Hosang
report at bugs.python.org
Sun Oct 4 13:03:52 CEST 2009
Jan Hosang <jan.hosang at gmail.com> added the comment:
Ezio, I moved the test to a separate method. Also I couldn't find
something to close the file if I don't care about errors. I thought an
assertRises would be wrong, as I am not debugging files here, so I added a
function to call a callable I expect to throw an exception (you said you
don't like the try/close/except/pass). I don't know if it is okay to add
functions to test_support, though.
----------
Added file: http://bugs.python.org/file15037/array_ioerror.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5395>
_______________________________________
More information about the Python-bugs-list
mailing list