From 52e80c5507ac9fb7d99b54c4916d46181719ee7a 2016-08-17 12:43:21 From: Thomas Kluyver Date: 2016-08-17 12:43:21 Subject: [PATCH] Merge pull request #9883 from boegel/test_resolve_symlink resolve path to temporary directory to ensure that 'assert_equal' tests also work when $TMPDIR is a symlink --- diff --git a/IPython/core/tests/test_paths.py b/IPython/core/tests/test_paths.py index d0a8768..20257ba 100644 --- a/IPython/core/tests/test_paths.py +++ b/IPython/core/tests/test_paths.py @@ -17,7 +17,7 @@ from IPython import paths from IPython.testing.decorators import skip_win32 from IPython.utils.tempdir import TemporaryDirectory -TMP_TEST_DIR = tempfile.mkdtemp() +TMP_TEST_DIR = os.path.realpath(tempfile.mkdtemp()) HOME_TEST_DIR = os.path.join(TMP_TEST_DIR, "home_test_dir") XDG_TEST_DIR = os.path.join(HOME_TEST_DIR, "xdg_test_dir") XDG_CACHE_DIR = os.path.join(HOME_TEST_DIR, "xdg_cache_dir")