-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
warnings.warn_explicit with module_globals=True raises a SystemError #77690
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
Reproducible with: import warnings
warnings.warn_explicit("msg", DeprecationWarning, "name", 1, module_globals=None) |
It may be related to: commit d4f8480
|
I choose the release blocker priority, since IMHO it's an easy fix. |
This bug was before commit d4f8480. |
Thanks for the report and thanks for the fix! |
This test is failed with -We. $ ./python -We -m test -v test_warnings
... ====================================================================== Traceback (most recent call last):
File "/home/serhiy/py/cpython/Lib/test/test_warnings/__init__.py", line 226, in test_module_globals
module_globals=None)
UserWarning: msg ====================================================================== Traceback (most recent call last):
File "/home/serhiy/py/cpython/Lib/test/test_warnings/__init__.py", line 226, in test_module_globals
module_globals=None)
File "/home/serhiy/py/cpython/Lib/warnings.py", line 375, in warn_explicit
raise message
UserWarning: msg |
Thank you Serhiy for the bug report. It should now be fixed again. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: