Skip to content

Loading…

Fix tests to work when ~/.config/ipython contains a symlink. #1138

Merged
merged 1 commit into from

2 participants

@g2p

No description provided.

@minrk minrk merged commit 7c69db9 into ipython:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 1 addition and 1 deletion.
  1. +1 −1 IPython/core/tests/test_magic.py
View
2 IPython/core/tests/test_magic.py
@@ -238,7 +238,7 @@ def test_dirops():
# curpath = lambda :os.path.splitdrive(os.getcwdu())[1].replace('\\','/')
curpath = os.getcwdu
startdir = os.getcwdu()
- ipdir = _ip.ipython_dir
+ ipdir = os.path.realpath(_ip.ipython_dir)
try:
_ip.magic('cd "%s"' % ipdir)
nt.assert_equal(curpath(), ipdir)
Something went wrong with that request. Please try again.