##// END OF EJS Templates
Merge pull request #3961 from jdfreder/longpath_test_fix...
Thomas Kluyver -
r12087:e5fb1975 merge
parent child Browse files
Show More
@@ -411,8 +411,16 def test_get_ipython_module_path():
411 411
412 412 @dec.skip_if_not_win32
413 413 def test_get_long_path_name_win32():
414 p = path.get_long_path_name('c:\\docume~1')
415 nt.assert_equal(p,u'c:\\Documents and Settings')
414 with TemporaryDirectory() as tmpdir:
415
416 # Make a long path.
417 long_path = os.path.join(tmpdir, u'this is my long path name')
418 os.makedirs(long_path)
419
420 # Test to see if the short path evaluates correctly.
421 short_path = os.path.join(tmpdir, u'THISIS~1')
422 evaluated_path = path.get_long_path_name(short_path)
423 nt.assert_equal(evaluated_path.lower(), long_path.lower())
416 424
417 425
418 426 @dec.skip_win32
General Comments 0
You need to be logged in to leave comments. Login now