Skip to content

fix: normalize XDG user fonts path at filesystem root - #619

Merged
gaborbernat merged 4 commits into
tox-dev:mainfrom
blouirts123:fix/xdg-root-fonts-path
Oct 16, 2026
Merged

gaborbernat merged 4 commits into
tox-dev:mainfrom
blouirts123:fix/xdg-root-fonts-path

Conversation

@blouirts123

Copy link
Copy Markdown
Contributor

When XDG_DATA_HOME=/, user_fonts_dir returns //fonts. Join the path with posixpath.join so the result is /fonts, retaining the POSIX separator behavior on other hosts. Add regressions for Unix and macOS plus a news fragment.

Validation: all seven configured runtime test environments pass (CPython 3.11–3.15, PyPy 3.11 and free-threaded CPython 3.15), with 2,022 passed and 334 skipped each. Coverage, docs, package metadata, type checks and Ruff pass; diff coverage is 100%.

The default fix check has an existing yamlfmt failure, independently reproduced on the clean upstream base: it inserts blank lines into three unrelated workflow files. Those changes are excluded. All other fix hooks pass.

blouirts123 and others added 2 commits October 16, 2026 05:01
Parametrize the regression with a trailing-slash XDG_DATA_HOME so the
test backs the changelog claim, not only the root case. Drop the
expanduser call: _xdg_dir only returns absolute paths, so it never
changed the value and needed a lint suppression.

@gaborbernat gaborbernat left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gaborbernat
gaborbernat enabled auto-merge (squash) October 15, 2026 23:53
@gaborbernat
gaborbernat merged commit 9a8eb24 into tox-dev:main Oct 16, 2026
33 checks passed
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.

2 participants