You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Failing (or warning?) with Python 3.12 alpha 7 #1571
I think it may be worthwhile to use onexc conditionally when running on Python 3.12 and later. (The old onerror way has to be kept for 3.11 and lower, but it seems to me that using onexc where available is still worth doing, primarily because it will automatically work on a future version of Python that removes onerror, which is planned for 3.14, and secondarily to get clean builds/checks when tools are used that detect deprecated usage.) However, although that appeared related to this issue, I actually think it is independent.
Activity
Byron commentedon Apr 7, 2023
Thanks for reporting! Any help with this will be appreciated.
EliahKagan commentedon Sep 12, 2023
Does this still happen with Python 3.12 RC2? Since #1654, Python 3.12 (currently at RC2) runs on this project's CI, and all checks have been passing. Based on python/cpython#103632, python/cpython#103551, and others, it looks to me like it was a bug in Python 3.12 alpha 7 itself, which was since fixed, rather than in GitPython. If that is the case, then this could be closed.
I think it may be worthwhile to use
onexcconditionally when running on Python 3.12 and later. (The oldonerrorway has to be kept for 3.11 and lower, but it seems to me that usingonexcwhere available is still worth doing, primarily because it will automatically work on a future version of Python that removesonerror, which is planned for 3.14, and secondarily to get clean builds/checks when tools are used that detect deprecated usage.) However, although that appeared related to this issue, I actually think it is independent.