◐ Shell
clean mode source ↗

Run `gc.collect()` twice in `test_rename` on Python 3.12 by EliahKagan · Pull Request #2109 · gitpython-developers/GitPython

Expand Up @@ -1011,6 +1011,7 @@ def test_rename(self, rwdir): # garbage collector detailed in https://github.com/python/cpython/issues/97922.) if sys.platform == "win32" and sys.version_info >= (3, 12): gc.collect() gc.collect() # Some finalizer scenarios need two collections, at least in theory.
new_path = "renamed/myname" assert sm.move(new_path).name == new_path Expand Down