-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
gh-93334: Fix homonym edge case in PathFinder.find_spec() #98100
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
double backticks in news entry
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 think the code should raise ModuleNotFoundError
and consider this bug being found due to an invalid call to find_spec
when the parent package wasn't imported.
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
I have made the requested changes; please review again (happy to continue adjusting the test setup to be more minimal, if there's a way) |
Thanks for making the requested changes! @brettcannon: please review the changes made to this pull request. |
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.
Sorry for the delay in getting to this review! Just a tightening of the test and then I think we are good!
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Thanks for the review! I have made the requested changes; please review again |
Thanks for making the requested changes! @brettcannon: please review the changes made to this pull request. |
@jacobtylerwalls sorry about the extreme delay in reviewing this! 😅 And thanks for the PR! |
PathFinder.find_spec()
can raise bareKeyError
whenpath=None
#93334Closes #93334