[3.9] bpo-40939: Fix test_keyword for the old parser#20814
[3.9] bpo-40939: Fix test_keyword for the old parser#20814pablogsal merged 3 commits intopython:3.9from
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.
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.
I would use discard(), but your code is correct ;-)
I like discard() :)
|
|
The buildbot failure is unrelated |
https://bugs.python.org/issue40939