Commit d7efa37
Close submodule fixture handles before testing moves on Windows
The Python package CI job test (windows, 3.13) failed both test_move_normal_destination cases with WinError 32 during os.renames(): the newly cloned checkout was still held open. The intermediate-symlink rejection cases and leaf-link compatibility cases passed; the latter already close a module repository while snapshotting state.
Close the fixture module repository before yielding it, reusing Repo.close() and its Windows handle cleanup. This lets the normal-move tests exercise destination validation without depending on garbage-collection timing. Production behavior is unchanged.
Validation: all 30 focused move cases pass locally, along with Ruff lint and formatting and git diff --check. Windows verification will come from the next CI run.1 parent 5a1b6f3 commit d7efa37
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
0 commit comments