Repository navigation
Commit d0af2c3
committed
test: Use posixpath.isabs for the POSIX trusted-directory entries
test_all_entries_are_absolute failed the windows-latest 3.13 leg on
'/run/wrappers/bin is not absolute'.
From Python 3.13, ntpath.isabs() treats a single-slash path as drive-relative
rather than absolute, so os.path.isabs made this assertion a statement about the
host running the tests instead of about the constant. Every entry in
TRUSTED_SYSTEM_DIRECTORIES is a POSIX path, and the module is POSIX-oriented, so
posixpath.isabs is the right question to ask.
Verified the mechanism locally rather than inferring it: ntpath.isabs
('/run/wrappers/bin') is False while posixpath.isabs is True.
Same fix as the sibling job-attachments change; I applied it there and missed the
twin here, which is why it only surfaced on the Windows leg after the other
failure stopped masking it via fail-fast.
975 passed, 40 skipped, 16 xfailed.
Signed-off-by: David Leong <116610336+leongdl@users.noreply.github.com>1 parent 110018a commit d0af2c3
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
221 | 222 | | |
222 | 223 | | |
223 | 224 | | |
224 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
225 | 233 | | |
226 | | - | |
| 234 | + | |
227 | 235 | | |
228 | 236 | | |
229 | 237 | | |
| |||
0 commit comments