uv
9305badc - Fix show_settings tests not to be affected by system configs (#9992)

Commit
361 days ago
Fix show_settings tests not to be affected by system configs (#9992) <!-- Thank you for contributing to uv! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary Override XDG_CONFIG_DIRS in show_settings tests, in order to ensure that they don't pick system configuration, and therefore fail due to value mismatches. This specifically addresses test failures on Gentoo where a default `/etc/xdg/uv/uv.toml` is installed, and users are free to modify it. Prior to #9914, we used to set `XDG_CONFIG_DIRS` locally before running the test suite. However, since the test now wipes the environment, the problem can no longer be resolved downstream. ## Test Plan `cargo test` on a Gentoo system (with `/etc/xdg/uv/uv.toml` present). --------- Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
Author
Parents
Loading