Skip to content
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

gh-122191: Fix test_warnings failure if run with -Werror #122222

Merged

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Jul 24, 2024

__spec__.loader is now required in the module globals (see gh-86298).

__spec__.loader is now required in the module globals (see pythongh-86298).
@serhiy-storchaka serhiy-storchaka added tests Tests in the Lib/test dir skip news needs backport to 3.12 bug and security fixes needs backport to 3.13 bugs and security fixes labels Jul 24, 2024
Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like my suggestion had some typos. Slightly concerning that it passed anyway.

Lib/test/test_warnings/__init__.py Outdated Show resolved Hide resolved
Lib/test/test_warnings/__init__.py Outdated Show resolved Hide resolved
@serhiy-storchaka serhiy-storchaka merged commit 9b4fe9b into python:main Jul 25, 2024
32 checks passed
@miss-islington-app
Copy link

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

@serhiy-storchaka serhiy-storchaka deleted the test_warnings-test_issue31285 branch July 25, 2024 06:57
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 25, 2024
…nGH-122222)

__spec__.loader is now required in the module globals (see pythongh-86298).
(cherry picked from commit 9b4fe9b)

Co-authored-by: Serhiy Storchaka <[email protected]>
@miss-islington-app
Copy link

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 9b4fe9b718f27352ba0c1cf1184f5b90d77d7df4 3.12

@serhiy-storchaka
Copy link
Member Author

Thank you for your review @AlexWaygood.

@bedevere-app
Copy link

bedevere-app bot commented Jul 25, 2024

GH-122256 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jul 25, 2024
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Jul 25, 2024
…pythonGH-122222)

__spec__.loader is now required in the module globals (see pythongh-86298).
(cherry picked from commit 9b4fe9b)

Co-authored-by: Serhiy Storchaka <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Jul 25, 2024

GH-122257 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Jul 25, 2024
serhiy-storchaka added a commit that referenced this pull request Jul 25, 2024
…22222) (GH-122257)

__spec__.loader is now required in the module globals (see gh-86298).
(cherry picked from commit 9b4fe9b)
serhiy-storchaka added a commit that referenced this pull request Jul 25, 2024
…22222) (GH-122256)

__spec__.loader is now required in the module globals (see gh-86298).
(cherry picked from commit 9b4fe9b)

Co-authored-by: Serhiy Storchaka <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants