]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #12765: Fix packaging.test.test_database failures on OS X due
authorNed Deily <nad@acm.org>
Thu, 15 Sep 2011 22:09:23 +0000 (15:09 -0700)
committerNed Deily <nad@acm.org>
Thu, 15 Sep 2011 22:09:23 +0000 (15:09 -0700)
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

index 5c95cdaa03be8e3dcf39718678fdd7bcaa26e2b4..b36e66d22da750908e92e0f6f0d2290a8234e628 100644 (file)
@@ -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)