From 7c69db9c481c91e7bdf41b558d42ea38803208f6 2011-12-10 23:55:03 From: Min RK Date: 2011-12-10 23:55:03 Subject: [PATCH] Merge pull request #1138 from g2p/test-fix resolve ipython directory symlink with realpath() in test_magic. --- diff --git a/IPython/core/tests/test_magic.py b/IPython/core/tests/test_magic.py index 5221499..8086371 100644 --- a/IPython/core/tests/test_magic.py +++ b/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)