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

fix initial sys.path #4318

Merged
merged 2 commits into from Oct 2, 2013
Merged

fix initial sys.path #4318

merged 2 commits into from Oct 2, 2013

Conversation

minrk
Copy link
Member

@minrk minrk commented Sep 30, 2013

recent change caused initial sys.path to lose '' as the first element in the
notebook.

closes #4317

recent change caused initial sys.path to lose '' as the first element in the notebook.

closes ipython#4317
@takluyver
Copy link
Member

Is there a sane way to add a test for this?

both when `--profile-dir` is specified, and when it is not.
@minrk
Copy link
Member Author

minrk commented Oct 1, 2013

Test added.

@Carreau
Copy link
Member

Carreau commented Oct 2, 2013

looks good.

@@ -46,6 +47,21 @@ def test_simple_print():
_check_mp_mode(kc, expected=False)


def test_sys_path():
"""test that sys.path doesn't get messed up by default"""
with kernel() as kc:
Copy link
Member

Choose a reason for hiding this comment

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

This is reusing a kernel, so we should remember that it can be affected by other tests. However, I don't think we should make it use another new kernel, because that's a substantial extra slowdown for a quite trivial test.

takluyver added a commit that referenced this pull request Oct 2, 2013
@takluyver takluyver merged commit 4d6aad3 into ipython:master Oct 2, 2013
@minrk minrk deleted the sys.path branch March 31, 2014 23:36
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Relative imports broken in the notebook (Windows)
3 participants