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

Can't run test_opt_invalid_cachedir under Windows #295

Open
gmaze opened this issue Sep 28, 2023 · 1 comment
Open

Can't run test_opt_invalid_cachedir under Windows #295

gmaze opened this issue Sep 28, 2023 · 1 comment
Labels
help wanted internals Internal machinery stale No activity over the last 90 days

Comments

@gmaze
Copy link
Member

gmaze commented Sep 28, 2023

In CI tests, we have the test_options/test_opt_invalid_cachedir test that check if an OptionValueError is indeed raised when the option cache_dir is set to a folder without writing access.
To run the test, we create a dummy folder, remove write access and try to set it as cache_dir.

The issue is that under the latest windows in Github Actions, I can't manage to create a non-writable folder !
I've tried to use icacls (see argopy/tests/helpers/utils.py) but it doesn't work, the command still return a:

b'processed file: read_only_folder\r
Successfully processed 1 files; Failed processing 0 files\r'

but os.stat(folder_name).st_mode remains 16895 instead of 16749.

I work with Mac and Linux not Windows, and can't easily try to fix this issue
If you want to give it a try, you're welcome,
I give up and skip this test for Windows platform

@gmaze gmaze added help wanted internals Internal machinery labels Sep 28, 2023
Copy link

This issue was marked as staled automatically because it has not seen any activity in 90 days

@github-actions github-actions bot added the stale No activity over the last 90 days label Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted internals Internal machinery stale No activity over the last 90 days
Projects
None yet
Development

No branches or pull requests

1 participant