Commit 77e6e4e
authored
Fix Windows tempdir cleanup race in test_vrt_tiled_scheduler_1714 (#1748)
Threaded dask writes can leave file handles briefly open after the
context manager exits, so Windows raises PermissionError [WinError 32]
on the recursive directory removal. Linux closes the handles before
shutil.rmtree walks the tree, so it never fails there.
Pass ignore_cleanup_errors=True on each TemporaryDirectory. The tests
verify the writes succeeded before the context exits, so the cleanup
failure is purely a Windows-side temp-file leak, not a real bug.1 parent 8adb749 commit 77e6e4e
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
70 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
98 | | - | |
99 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
100 | 108 | | |
101 | 109 | | |
102 | 110 | | |
| |||
0 commit comments