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._fileobj.close() )
f = zf.open(zinfo.filename, "r")
while f.read( 2 ** 20): # Check CRC-32
f._fileobj.close() # This shoulnd't be necessary, but it is.
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list