-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Python 3.7 autocomplete bugfix #11227
Conversation
There's a bug in try_import that will cause this test to raise an "NoneType has no attribute" exception.
3a9ee7e
to
fd8dc7a
Compare
fd8dc7a
to
88a6a54
Compare
""" | ||
fake_module_name = "foo" | ||
with TemporaryDirectory() as tmpdir: | ||
sys.path.insert(0, tmpdir) |
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.
Don't forget to remove tmpdir from sys.path at the end. See test_bad_module_all for example.
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.
Done
this and #11179 would be nice to have soon in a 6.5 update release. |
Thanks, i'll backport that to the 6.x branch, and try to do a release soon. |
…227-on-6.x Backport PR #11227 on branch 6.x
Resolves #11226