Commit 98b78d2
committed
Run
Recently, the conditional `gc.collect()` step for Python >= 3.12 in
`TestSubmodule.test_rename` is often insufficient. This has mainly
been seen in #2248. For example:
https://github.com/gitpython-developers/GitPython/actions/runs/22864869684/job/66331124651?pr=2106#step:12:620
In principle, there can be situations with finalizers where a cycle
is only collectable due to finalization that happened due to a
previous collection. Therefore, there is occasionally a benefit to
collecting twice. This does that, in the hope that it will help.gc.collect() twice in test_rename on Python 3.121 parent c0a3d5f commit 98b78d2
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
| 1014 | + | |
1014 | 1015 | | |
1015 | 1016 | | |
1016 | 1017 | | |
| |||
0 commit comments