Commit ad38516
Avoid mapped stream in Windows regression test
The Python package test (windows, 3.7) check still failed during TemporaryDirectory cleanup with WinError 5 because reading the loose object through GitDB.stream() retained its mmap on that interpreter even after explicit stream and Repo cleanup.
Use GitDB.info(), whose loose-object implementation closes the mmap in a finally block, to verify the custom object database. Keep git cat-file as the payload check and subprocess-environment regression.
Validation: focused regression test; Ruff check and format; git diff --check.1 parent 5bc6fa2 commit ad38516
1 file changed
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
| 252 | + | |
257 | 253 | | |
258 | 254 | | |
259 | 255 | | |
| |||
0 commit comments