##// END OF EJS Templates
FIX test_get_long_path_name_win32 for Win7...
Jonathan Frederic -
Show More
@@ -411,8 +411,12 b' 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 long_path = os.path.join(tmpdir, u'this is my long path name')
416 short_path = os.path.join(tmpdir, u'THISIS~1')
417
418 path = path.get_long_path_name(short_path)
419 nt.assert_equal(path, long_path)
416 420
417 421
418 422 @dec.skip_win32
General Comments 0
You need to be logged in to leave comments. Login now