Commit be27d4c
committed
test(discover): use platform-agnostic tmp paths in error tests
The two `discover` error tests hardcoded `/tmp` as a Unix path, which
breaks on Windows where the directory doesn't exist (`--root /tmp` is
rejected by click before the actual assertion runs). Use pytest's
`tmp_path` fixture instead so the tests work on Linux, macOS and
Windows.1 parent 3c47b48 commit be27d4c
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
| 21 | + | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
0 commit comments