-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-35923: Update the BuiltinImporter to use loader._ORIGIN #15651
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
To core-developers, The unit test for BuiltinImporter is already done by the below codes.
|
a327f57
to
ea958b1
Compare
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.
Thanks for the PR @corona10.
I have a minor suggestion for the news entry:
Misc/NEWS.d/next/Library/2019-09-03-01-41-35.bpo-35923.lYpKbY.rst
Outdated
Show resolved
Hide resolved
Also as a side note, I think a long enough duration of time has passed since nnja assigned themselves to the issue for someone else to work on it. The last update they made to the issue was 7 months ago, and a PR was never opened for it. |
@aeros167 Thank's for the review. I've applied your suggestion inline. |
Thanks for making the changes @corona10. 👍 As a minor adjustment, would you mind splitting the first line of the news entry into the next line? It looks like the recent changes put it above the 80 maximum for reST: >>> len("Update :class:`importlib.machinery.BuiltinImporter` to use ``loader._ORIGIN`` instead of a")
90 Changing the news entry to this will fix it:
|
Looks like Azure is failing from the mac tests timing out:
Looking a bit more in-depth at the failure, it looks the mac tests timed out during the following test:
Previously I'd have closed and opened the PR to retrigger the tests, but I think it would be better to consult the CI experts before doing so. I wonder if this is related to https://bugs.python.org/issue18049. More specifically the changes made in https://github.com/python/cpython/pull/15065/files to /cc @vstinner @pablogsal Edit: Since the previous tests were passing before the news entry was modified, it's likely the CI failure isn't related to the PR. Let's wait on their feedback before moving forward though. This might be revealing a bug in the macOS tests. |
Comment https://bugs.python.org/issue18049 to ask people who were involved in these changes to have a look. If they consider that it's unrelated, a new issue should be opened. |
@vstinner |
On https://devguide.python.org/experts/ there is only @brettcannon who is already marked as a reviewer. @ncoghlan and @warsaw may also be available to review importlib changes. |
I filled https://bugs.python.org/issue37245 in June. It seems like the issue is still occurring. |
@brettcannon I've repushed the PR. Please take a look after jobs are done :) |
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.
One last minor nit, can you adjust the Misc/NEWS entry to fit the max words per line within the reST 80 char limit?
Current:
Update :class:
importlib.machinery.BuiltinImporter
to use
loader._ORIGIN
instead of a hardcoded value. Patch by Dong-hee Na.
Suggested:
Update :class:
importlib.machinery.BuiltinImporter
to useloader._ORIGIN
instead of a hardcoded value. Patch by Dong-hee Na.
@aeros167 Thank you for the review. I 've updated it. |
Thanks! |
…f a hard-coded value (pythonGH-15651)
https://bugs.python.org/issue35923