From 6ef2911494eeab5d7b3967cdf23e2822d48f68dd 2016-08-17 11:49:25 From: Kenneth Hoste Date: 2016-08-17 11:49:25 Subject: [PATCH] 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")