-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-130080: fix warnings in tests #131400
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-130080: fix warnings in tests #131400
Conversation
iritkatriel
commented
Mar 18, 2025
•
edited by bedevere-app
bot
Loading
edited by bedevere-app
bot
- Issue: Implement PEP 765 #130080
Sorry, but I missed some cases when reporting the issue:
The reported warnings were only found while doing PGO build. |
break | ||
self.assertEqual(count, 1) | ||
with warnings.catch_warnings(): | ||
warnings.simplefilter('ignore', SyntaxWarning) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this fix work? The SyntaxWarning is issued when the file is imported so this block hasn't run yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. I'll refix this.