From e30186bf4bfde9415229e58d25e467a5c6561239 Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Thu, 15 Sep 2011 15:09:23 -0700 Subject: Issue #12765: Fix packaging.test.test_database failures on OS X due to unwarranted assumption about absolute paths: on OS X /var is a symlink to /private/var. (Also true for /etc and /tmp). --- Lib/packaging/tests/test_database.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/packaging/tests/test_database.py b/Lib/packaging/tests/test_database.py index 5c95cda..b36e66d 100644 --- a/Lib/packaging/tests/test_database.py +++ b/Lib/packaging/tests/test_database.py @@ -50,6 +50,7 @@ class FakeDistsMixin: tmpdir = tempfile.mkdtemp() self.addCleanup(shutil.rmtree, tmpdir) self.fake_dists_path = os.path.join(tmpdir, 'fake_dists') + self.fake_dists_path = os.path.realpath(self.fake_dists_path) fake_dists_src = os.path.abspath( os.path.join(os.path.dirname(__file__), 'fake_dists')) shutil.copytree(fake_dists_src, self.fake_dists_path) -- cgit v0.12