-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
bpo-43105: Importlib now resolves relative paths when creating module spec objects from file locations #25121
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
That's all I'm getting done for now, will probably have to fix more tests. Definitely needs updated whatsnew docs, because this is a more impactful change than just having imports succeed with relative paths in sys.path, but I think it's for the best. |
Do you think changes to For resolving bpo-43105 in 3.8, |
Git is getting really messed up here, I'm going to do a reset and rebase to make sure I only have my changes in here. |
Assuming all the tests pass, this change doesn't affect ntpath and so can be backported. Then I can easily add the ntpath changes back separately (later, because they rely on the changes in here). |
The Azure Pipelines failure is the flaky asyncio test, so unless @eryksun spots something in the next hour or so, I'm going to hit merge. |
Thanks @zooba for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9. |
Sorry, @zooba, I could not cleanly backport this to |
Sorry @zooba, I had trouble checking out the |
GH-25237 is a backport of this pull request to the 3.9 branch. |
@zooba It is a shame there are no direct tests of Adding a new method to |
https://bugs.python.org/issue43105