From 063f34a32be158204a7486771d24bc6c840feaef 2012-06-24 02:29:07 From: Jonathan March Date: 2012-06-24 02:29:07 Subject: [PATCH] Fix home path expansion test in Windows. Fixes #2019 --- diff --git a/IPython/utils/tests/test_path.py b/IPython/utils/tests/test_path.py index 2310705..bc3481d 100644 --- a/IPython/utils/tests/test_path.py +++ b/IPython/utils/tests/test_path.py @@ -287,7 +287,7 @@ def test_get_ipython_dir_6(): def test_get_ipython_dir_7(): """test_get_ipython_dir_7, test home directory expansion on IPYTHONDIR""" path._writable_dir = lambda path: True - home_dir = os.path.expanduser('~') + home_dir = os.path.normpath(os.path.expanduser('~')) env['IPYTHONDIR'] = os.path.join('~', 'somewhere') ipdir = path.get_ipython_dir() nt.assert_equal(ipdir, os.path.join(home_dir, 'somewhere'))