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

try/except sleep unlink out/err files in tests.py #57

Open
dawson6 opened this issue Jul 22, 2021 · 1 comment
Open

try/except sleep unlink out/err files in tests.py #57

dawson6 opened this issue Jul 22, 2021 · 1 comment

Comments

@dawson6
Copy link
Member

dawson6 commented Jul 22, 2021

Liu, Ben
Another feature request. On Windows systems, the deletion of the out/err files can sometimes fail because the file has not been finalized yet. Previously we added a try/except on the unlink to get around this (this is at the end of tests.py).

Would it be possible to sleep(1) and try again, then only give the log message if that also failed?

@dawson6
Copy link
Member Author

dawson6 commented Mar 20, 2023

This may fit in with a another proposal to use a standard set of decorators to do handle these cases.

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

No branches or pull requests

1 participant