[issue16408] zipfile.testzip() opens file but does not close it.

2012-11-04 Thread Eric Busboom
New submission from Eric Busboom: The zipfile.testzip() method will open each of the files in a zip archive, but does not close the files, resulting in a file descriptor leak. -- components: Library (Lib) messages: 174829 nosy: Eric.Busboom priority: normal severity: normal status

[issue16408] zipfile.testzip() opens file but does not close it.

2012-11-04 Thread Eric Busboom
Eric Busboom added the comment: I've tried just closing the ZipExtFile created in testzip, but that didn't actually close the file. It looks like ZipExtClose.close() also doesn't close the file descriptor, at least when the ZipFile is constructed on a filename. This code worked (Addition of f