Show More
@@ -412,11 +412,15 b' def test_get_ipython_module_path():' | |||||
412 | @dec.skip_if_not_win32 |
|
412 | @dec.skip_if_not_win32 | |
413 | def test_get_long_path_name_win32(): |
|
413 | def test_get_long_path_name_win32(): | |
414 | with TemporaryDirectory() as tmpdir: |
|
414 | with TemporaryDirectory() as tmpdir: | |
|
415 | ||||
|
416 | # Make a long path. | |||
415 | long_path = os.path.join(tmpdir, u'this is my long path name') |
|
417 | long_path = os.path.join(tmpdir, u'this is my long path name') | |
416 | short_path = os.path.join(tmpdir, u'THISIS~1') |
|
418 | os.makedirs(long_path) | |
417 |
|
419 | |||
418 | path = path.get_long_path_name(short_path) |
|
420 | # Test to see if the short path evaluates correctly. | |
419 | nt.assert_equal(path, long_path) |
|
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()) | |||
420 |
|
424 | |||
421 |
|
425 | |||
422 | @dec.skip_win32 |
|
426 | @dec.skip_win32 |
General Comments 0
You need to be logged in to leave comments.
Login now