Skip to content

Commit

Permalink
Merge pull request #4633 from watercrossing/master
Browse files Browse the repository at this point in the history
Modifies test_get_long_path_name_winr32() to allow for long path names in temp dir
  • Loading branch information
takluyver committed Dec 5, 2013
2 parents 3476524 + a33c3ab commit c155070
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions IPython/utils/tests/test_path.py
Expand Up @@ -453,8 +453,9 @@ def test_get_ipython_module_path():
def test_get_long_path_name_win32():
with TemporaryDirectory() as tmpdir:

# Make a long path.
long_path = os.path.join(tmpdir, u'this is my long path name')
# Make a long path. Expands the path of tmpdir prematurely as it may already have a long
# path component, so ensure we include the long form of it
long_path = os.path.join(path.get_long_path_name(tmpdir), u'this is my long path name')
os.makedirs(long_path)

# Test to see if the short path evaluates correctly.
Expand Down

0 comments on commit c155070

Please sign in to comment.