From e776d60d95517cc469172cd3be063d078e7b4a29 2013-08-08 19:44:29 From: Jonathan Frederic Date: 2013-08-08 19:44:29 Subject: [PATCH] Small fixes to make test work. --- diff --git a/IPython/utils/tests/test_path.py b/IPython/utils/tests/test_path.py index 63d604f..d1fb8f3 100644 --- a/IPython/utils/tests/test_path.py +++ b/IPython/utils/tests/test_path.py @@ -412,11 +412,15 @@ def test_get_ipython_module_path(): @dec.skip_if_not_win32 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') - short_path = os.path.join(tmpdir, u'THISIS~1') + os.makedirs(long_path) - path = path.get_long_path_name(short_path) - nt.assert_equal(path, long_path) + # Test to see if the short path evaluates correctly. + short_path = os.path.join(tmpdir, u'THISIS~1') + evaluated_path = path.get_long_path_name(short_path) + nt.assert_equal(evaluated_path.lower(), long_path.lower()) @dec.skip_win32