-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
test_datetime
fails with a --forever
argument
#120782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
A more detailed repro case:
I added a
This suggests the timezone class's |
The failure goes away with this diff, which disables the type cache:
So this is related to the type cache. |
Bisected to 3e8b609 |
…H-120829) (#120855) * [3.13] gh-120782: Update internal type cache when reloading datetime When reloading _datetime module, the single-phase version did not invoke the PyInit__datetime function, whereas the current multi-phase version updates the static types through the module init. The outdated static type cache in the interpreter state needs to be invalidated at the end of reloading the multi-phase module.
The fix is now superseded by See also #122184. |
Bug report
Bug description:
Output:
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs
The text was updated successfully, but these errors were encountered: