-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
[3.9] bpo-40939: Fix test_keyword for the old parser #20814
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
Conversation
You beat me to it!! Should we maybe also rename the easter egg in 3.9 as per @vstinner's suggestion? |
Remember: fastest gun in the west 🔫 🤠
¯_(ツ)_/¯ As you prefer: there is no possibility that it needs to be future-proof now :P |
Time and time again!
You both know best. |
Ok, will change it here then |
Lib/test/test_keyword.py
Outdated
for key in keyword.kwlist: | ||
all_keywords = set(keyword.kwlist) | ||
if use_old_parser(): | ||
all_keywords -= {'__new_parser__'} |
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.
I would use discard(), but your code is correct ;-)
all_keywords -= {'__new_parser__'} | |
all_keywords.discard('__new_parser__') |
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.
I would use discard(), but your code is correct ;-)
I like discard()
:)
|
The buildbot failure is unrelated |
https://bugs.python.org/issue40939