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

Remove read-only files upon cleanup #2501

Merged
merged 10 commits into from Sep 17, 2022
Merged

Remove read-only files upon cleanup #2501

merged 10 commits into from Sep 17, 2022

Conversation

robgom
Copy link

@robgom robgom commented Sep 14, 2022

Delete read-only files in ensure_empty_dir.

fixes #2498

@robgom
Copy link
Author

robgom commented Sep 15, 2022

Verified manually in my environment - without the fix my tests failed, with fix applied they pass.

@robgom robgom changed the title [WIP] Remove read-only files upon cleanup Remove read-only files upon cleanup Sep 15, 2022
@robgom robgom marked this pull request as ready for review September 15, 2022 09:16
@asottile
Copy link
Contributor

needs a test demonstrating the feature

@robgom
Copy link
Author

robgom commented Sep 16, 2022

needs a test demonstrating the feature

I have added a test proof-of-concept. It's failing, as I don't understand all the relationships in test code (mocks, fixtures).
If someone is able to polish it, great, if not - it'll have to wait until I learn it.

@robgom
Copy link
Author

robgom commented Sep 16, 2022

Managed to add a test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tox cannot remove readonly files from tmp directory
3 participants