From a1a27350a7f4d2490d42395cd0fe8a52996ace41 2011-12-09 21:07:57 From: Gabriel Date: 2011-12-09 21:07:57 Subject: [PATCH] Fix tests to work when ~/.config/ipython contains a symlink. --- 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)