FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-86533: Make Path.mkdir parent_mode tests umask-independent by gpshead · Pull Request #150040 · python/cpython · GitHub

Repository navigation

gh-86533: Make Path.mkdir parent_mode tests umask-independent - #150040

Merged
gpshead merged 2 commits into
python:mainfrom
gpshead:gh-86533-fix-mkdir-test-umask
May 19, 2026
Merged

gpshead merged 2 commits into
python:mainfrom
gpshead:gh-86533-fix-mkdir-test-umask

Conversation

gpshead commented May 18, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

test_mkdir_with_parent_mode, test_mkdir_parent_mode_deep_hierarchy and
test_mkdir_parent_mode_same_as_mode assert exact directory mode bits but
did not pin the process umask.  On buildbots running with a restrictive
umask (e.g. 0o077) the 0o755 leaf was masked down to 0o700, failing the
assertions.  Wrap them in os_helper.temp_umask(0o022), matching the
other umask-aware mkdir tests in this file.
gpshead requested a review from barneygale as a code owner May 18, 2026 23:37
bedevere-app Bot added the tests Tests in the Lib/test dir label May 18, 2026
gpshead enabled auto-merge (squash) May 18, 2026 23:37
gpshead merged commit 68ebc05 into python:main May 19, 2026
89 of 91 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL