Skip to content

fix: handle inaccessible macOS runtime directories on older Python - #756

Open
Gaurakumar-s wants to merge 1 commit into
tox-dev:mainfrom
Gaurakumar-s:fix/macos-runtime-search-permissions
Open

Gaurakumar-s wants to merge 1 commit into
tox-dev:mainfrom
Gaurakumar-s:fix/macos-runtime-search-permissions

Conversation

@Gaurakumar-s

Copy link
Copy Markdown

Fixes #755.

Keep runtime file searches on the native fallback when XDG_RUNTIME_DIR is inaccessible on macOS. Added tests for missing and existing fallback files, with ensure_exists enabled and disabled.

The four new test cases fail on the original code with Python 3.12 and pass with the fix. Full tests pass locally on Python 3.11, 3.12, 3.14 and 3.15. Lint, type, coverage, docs and package checks pass too.

@Gaurakumar-s
Gaurakumar-s marked this pull request as ready for review November 28, 2026 10:58

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Runtime file searches raise PermissionError for an inaccessible XDG directory on macOS

1 participant