-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
fsutil write_file atomic=True destroys created file on exit #121
Comments
@williwacker actually all tests run successfully even on Windows. |
Hi Fabio, |
How I was testing: copied the testcase file into my temp folder and started pytest from this folder. |
@williwacker I have not a Windows machine, I run tests locally using The tests are based on For testing, please follow the instructions in the README testing section. |
@fabiocaccamo, |
@williwacker thank you for the feedback, this is probably just a tests problem because paths are hardcoded, I will try to fix tests as soon as possible and ask you to check again. Anyway, I don't understand why the GitHub CI doesn't fail when running on Windows. |
@williwacker I improved some tests for Windows compatibility, could you please pull from master, run tests and send me the errors report? |
Hi @fabiocaccamo, |
@williwacker exactly what I expected, I also agree with skipping permission test cases on Windows. |
@williwacker I would ask you to pull from master and test it again. All tests should succeed now (permissions tests skipped on Windows), except atomic write file tests that should still fail, but I would ask you to do a couple of tests locally:
|
Hi @fabiocaccamo, |
@williwacker I improved the code for Windows compatibility, could you please pull from master, run tests and send me the errors report? |
@fabiocaccamo I have run the tests on my windows machine and here is the test result |
Python version
3.10
Package version
latest
Current behavior (bug description)
write_file atomic=True destroys the created file on exit.
Obviously fsutil is not designed for running on Windows. Cannot handle directory names etc.
Expected behavior
created file should stay
Test Results:
pytest_result.txt
Upvote & Fund
The text was updated successfully, but these errors were encountered: