Brian Curtin <br...@python.org> added the comment: Attached is a slightly updated version of the patch. If the assertEqual for any reason were to fail, the file wouldn't be closed, leading to a ResourceWarning. That'll work on 3.2+, but if this is backported consideration will have to be made there (try/finally, probably).
Otherwise, in concept I think this patch is alright. ---------- Added file: http://bugs.python.org/file21123/issue11491.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11491> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com