]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-85633: Fix pathlib test failures on filesystems without world-write. (#122883)
authorBarney Gale <barney.gale@gmail.com>
Tue, 13 Aug 2024 17:09:21 +0000 (18:09 +0100)
committerGitHub <noreply@github.com>
Tue, 13 Aug 2024 17:09:21 +0000 (17:09 +0000)
commit5f6851152254b4b9d70af4ae5aea3f20965cee28
treef355fe2c7a97ded32374537b6946eb3ebd73a566
parent901d94992eddd84ded2edc55235cbf22503c4de4
GH-85633: Fix pathlib test failures on filesystems without world-write. (#122883)

Replace `umask(0)` with `umask(0o002)` so the created files are not
world-writable, and replace `umask(0o022)` with `umask(0o026)` to check
that permissions for 'others' can still be set.
Lib/test/test_pathlib/test_pathlib.py