Skip to content
This repository

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

Merged
merged 1 commit into from over 2 years ago

2 participants

Gabriel de Perthuis Min RK
Gabriel de Perthuis

No description provided.

Min RK minrk merged commit 7c69db9 into from December 10, 2011
Min RK minrk closed this December 10, 2011
Brian E. Granger ellisonbg referenced this pull request from a commit January 10, 2012
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Dec 09, 2011
Gabriel de Perthuis Fix tests to work when ~/.config/ipython contains a symlink. a1a2735
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  IPython/core/tests/test_magic.py
2  IPython/core/tests/test_magic.py
@@ -238,7 +238,7 @@ def test_dirops():
238 238
     # curpath = lambda :os.path.splitdrive(os.getcwdu())[1].replace('\\','/')
239 239
     curpath = os.getcwdu
240 240
     startdir = os.getcwdu()
241  
-    ipdir = _ip.ipython_dir
  241
+    ipdir = os.path.realpath(_ip.ipython_dir)
242 242
     try:
243 243
         _ip.magic('cd "%s"' % ipdir)
244 244
         nt.assert_equal(curpath(), ipdir)
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.