]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] GH-85633: Fix pathlib test failures on filesystems without world-write. (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 13 Aug 2024 17:39:14 +0000 (19:39 +0200)
committerGitHub <noreply@github.com>
Tue, 13 Aug 2024 17:39:14 +0000 (17:39 +0000)
commitd218810e203bc8a4f40818ebd51d2be90d3966cd
tree2d9632d7747a03970e5fadc2e9bb01add20f3d67
parent4aa0e795a98325619832fbafda9ee55f46f985e3
[3.13] GH-85633: Fix pathlib test failures on filesystems without world-write. (GH-122883) (#122979)

GH-85633: Fix pathlib test failures on filesystems without world-write. (GH-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.
(cherry picked from commit 5f6851152254b4b9d70af4ae5aea3f20965cee28)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
Lib/test/test_pathlib/test_pathlib.py