Skip to content

os_support.can_chmod() is broken #113090

Closed
Closed
@serhiy-storchaka

Description

@serhiy-storchaka

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11only security fixes3.12only security fixes3.13bugs and security fixestestsTests in the Lib/test dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions