Skip to content
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

Merged
merged 3 commits into from
Jul 22, 2018

Conversation

yen223
Copy link
Contributor

@yen223 yen223 commented Jul 14, 2018

Resolves #11226

There's a bug in try_import that will cause this test to raise an
"NoneType has no attribute" exception.
@yen223 yen223 changed the title 11226 3 7 autocomplete bugfix Python 3.7 autocomplete bugfix Jul 14, 2018
@yen223 yen223 force-pushed the 11226-3-7-autocomplete-bugfix branch 3 times, most recently from 3a9ee7e to fd8dc7a Compare July 14, 2018 06:37
@yen223 yen223 force-pushed the 11226-3-7-autocomplete-bugfix branch from fd8dc7a to 88a6a54 Compare July 14, 2018 06:47
"""
fake_module_name = "foo"
with TemporaryDirectory() as tmpdir:
sys.path.insert(0, tmpdir)

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@stonebig
Copy link
Contributor

this and #11179 would be nice to have soon in a 6.5 update release.

@Carreau Carreau added this to the 6.5 milestone Jul 22, 2018
@Carreau Carreau merged commit 134f970 into ipython:master Jul 22, 2018
lumberbot-app bot pushed a commit that referenced this pull request Jul 22, 2018
@Carreau
Copy link
Member

Carreau commented Jul 22, 2018

Thanks, i'll backport that to the 6.x branch, and try to do a release soon.
Apologies for the delay.

Carreau added a commit to meeseeksmachine/ipython that referenced this pull request Jul 23, 2018
Carreau added a commit that referenced this pull request Jul 23, 2018
@yen223 yen223 deleted the 11226-3-7-autocomplete-bugfix branch July 25, 2018 12:24
@Carreau Carreau added the backported PR that have been backported by MrMeeseeks label Jul 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported PR that have been backported by MrMeeseeks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants