From c15507072022792e14fb15a28a14bca4d5deaaef 2013-12-05 17:33:46 From: Thomas Kluyver Date: 2013-12-05 17:33:46 Subject: [PATCH] Merge pull request #4633 from watercrossing/master Modifies test_get_long_path_name_winr32() to allow for long path names in temp dir --- diff --git a/IPython/utils/tests/test_path.py b/IPython/utils/tests/test_path.py index 897d015..4fe0b32 100644 --- a/IPython/utils/tests/test_path.py +++ b/IPython/utils/tests/test_path.py @@ -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.