Commit 6d1a572
committed
test: derive XDG temp path via tempfile.gettempdir() (Ruff S108)
CodeRabbit flagged the hardcoded `/tmp/some-xdg-root` literal in
test_uses_xdg_state_home_when_set: it's Linux-specific and trips
Ruff's S108 (hardcoded-tmp-directory) lint. Derive the path from
tempfile.gettempdir() and join with os.path.join so the test runs
on Windows / macOS too and stays lint-clean.1 parent c1ae9d1 commit 6d1a572
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | | - | |
| 141 | + | |
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| |||
0 commit comments