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
Bad use of self
in importlib
#64296
Comments
There's a bad usage of
|
I don't see a class method at line 1431. |
Sorry, bad link, this is the right link: http://hg.python.org/cpython/file/fd846837492d/Lib/importlib/_bootstrap.py#l1409 |
Thanks! :) |
Here's a patch with tests that cover find_module() and find_spec() for WindowsRegistryFinder (the missing case) and fixes the bug. |
The patch passes on my linux box and on my windows 7 laptop (using Visual Studio 2010 Express). |
Here's an updated patch that fixes as copy-and-paste mistake. |
Would it be possible to put @unittest.skipUnless(...) on WindowsRegistryFinderTests instead of duplicating it? Except of this nit, the patch looks good to me. Note: WindowsRegistryFinder.find_spec() contains the comment: # XXX untested! Need a Windows person to write tests (otherwise mock out appropriately) |
New changeset 7dbb4c6cd30e by Eric Snow in branch 'default': |
Thanks for the review, Victor. As to that note, it is the subject of issue bpo-19714. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: