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

Add windows OS error suppressing for temp dir cleanups #4380

Merged
merged 1 commit into from
Dec 1, 2021

Conversation

iknox-fa
Copy link
Contributor

@iknox-fa iknox-fa commented Dec 1, 2021

resolves # 4261

Description

Our new logging keeps files open in such a way that causes a problem for a test when executed in a windows-based env. It's apparently "a thing" involving the builtin tempfile::TemporaryDirectory and has a work-around in python 3.10. This PR replicates that behavior for all python versions we support.

Checklist

  • I have signed the CLA
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change

Copy link
Contributor

@nathaniel-may nathaniel-may left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok cool so it looks like windows users won't have a problem when they install it, it's just a problem with the way we run our tests.

@leahwicz
Copy link
Contributor

leahwicz commented Dec 1, 2021

Good catch!

@iknox-fa
Copy link
Contributor Author

iknox-fa commented Dec 1, 2021

Ok cool so it looks like windows users won't have a problem when they install it, it's just a problem with the way we run our tests.

yeppers

@iknox-fa iknox-fa merged commit f461683 into main Dec 1, 2021
@iknox-fa iknox-fa deleted the windows_file_context_cleanup branch December 1, 2021 23:25
leahwicz added a commit that referenced this pull request Dec 2, 2021
Co-authored-by: Ian Knox <81931810+iknox-fa@users.noreply.github.com>
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.

3 participants