If ZipFile is not closed, the file remains locked on Windows and can't be renamed or deleted. Tested on Windows 7. It seems that Linux and OS X are not affected.
I added a test that tries to rename a zip file after unzipping it. The test fails on Windows unless the ZipFile is closed. The patch uses with-open to close the file.
If ZipFile is not closed, the file remains locked on Windows and can't be renamed or deleted. Tested on Windows 7. It seems that Linux and OS X are not affected.
I added a test that tries to rename a zip file after unzipping it. The test fails on Windows unless the ZipFile is closed. The patch uses
with-open
to close the file.