Commit c7a4512
committed
Fix conftest.py cleanup to handle missing cwd in Python 3.14
Python 3.14's os.path.abspath() throws FileNotFoundError when the current
working directory doesn't exist. This happens when tests change directory
to a temp directory that gets deleted.
Wrap the cleanup code in try-except to gracefully handle cleanup failures.
Fixes INTERNALERROR during test cleanup phase.1 parent 0a9e954 commit c7a4512
1 file changed
Lines changed: 11 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
0 commit comments