Ezio Melotti <ezio.melo...@gmail.com> added the comment: I think there should also be one or more tests that check if the file is closed correctly after the __exit__, in normal conditions and possibly in different situations (e.g. when an error is raised ). Unlike regular file objects, ZipFile objects don't have a 'closed' attribute, instead they set self.fp to None when the 'close' method is called.
---------- resolution: -> accepted _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5511> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com