Georg Brandl added the comment: The "self.fout.close()" is not needed here I think.
Another thing the test should test is that the file was actually closed on exception. Otherwise, LGTM. ---------- nosy: +georg.brandl _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16486> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com