Skip to content

os_support.can_chmod() is broken #113090

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

Closed
serhiy-storchaka opened this issue Dec 14, 2023 · 0 comments
Closed

os_support.can_chmod() is broken #113090

serhiy-storchaka opened this issue Dec 14, 2023 · 0 comments
Labels
3.11 only security fixes 3.12 only security fixes 3.13 bugs and security fixes tests Tests in the Lib/test dir

Comments

@serhiy-storchaka
Copy link
Member

serhiy-storchaka commented Dec 14, 2023

test.support.os_support.can_chmod() tests for hasattr(os, "chown") instead of hasattr(os, "chmod"). This, and also the fact that it tests bits not supported on Windows, makes it always returning False on Windows. It may make some meaningful tests skipped on Windows and prevents of using it in new tests for os.chmod().

Linked PRs

@serhiy-storchaka serhiy-storchaka added tests Tests in the Lib/test dir 3.11 only security fixes 3.12 only security fixes 3.13 bugs and security fixes labels Dec 14, 2023
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Dec 14, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Dec 14, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Dec 14, 2023
serhiy-storchaka added a commit that referenced this issue Dec 14, 2023
serhiy-storchaka added a commit that referenced this issue Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.11 only security fixes 3.12 only security fixes 3.13 bugs and security fixes tests Tests in the Lib/test dir
Projects
None yet
Development

No branches or pull requests

1 participant