[issue5511] zipfile - add __exit__ attribute to make ZipFile object compatible with with_statement

Brian Curtin report at bugs.python.org
Thu Oct 8 16:29:26 CEST 2009


Brian Curtin <curtin at acm.org> added the comment:

Added two tests -- test_close and test_close_on_exception, which check
if fp is None after __exit__ from a normal and exception case.

----------
keywords: +patch
Added file: http://bugs.python.org/file15082/issue5511_complete_20091008.patch

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


More information about the Python-bugs-list mailing list