Brian Curtin <cur...@acm.org> added the comment: Here is a patch which expands on Jaime's patch. I was converting tests for #7944 and looked at test_tarfile, and implemented the same feature that he did.
All places where context managers should be used in the test, they are used. Includes a doc update with a small example. ---------- keywords: +needs review nosy: +brian.curtin Added file: http://bugs.python.org/file16285/issue7944_tarfile.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7232> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com