Jan Hosang <jan.hos...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue5395> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com