Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix zip file locking issue on Windows #92

Merged
merged 1 commit into from
Jan 14, 2016

Conversation

jokimaki
Copy link
Contributor

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.

Raynes added a commit that referenced this pull request Jan 14, 2016
Fix zip file locking issue on Windows
@Raynes Raynes merged commit b7ca460 into Raynes:master Jan 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants