summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2011-09-15 22:09:23 (GMT)
committerNed Deily <nad@acm.org>2011-09-15 22:09:23 (GMT)
commite30186bf4bfde9415229e58d25e467a5c6561239 (patch)
treeae6a7d38749e1572fbcd0310550a23e0df8e3ecc /Lib
parent9561d7c5266efdfbd2a4eac877961a4fa8f525f1 (diff)
downloadcpython-e30186bf4bfde9415229e58d25e467a5c6561239.zip
cpython-e30186bf4bfde9415229e58d25e467a5c6561239.tar.gz
cpython-e30186bf4bfde9415229e58d25e467a5c6561239.tar.bz2
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).
Diffstat (limited to 'Lib')
-rw-r--r--Lib/packaging/tests/test_database.py1
1 files changed, 1 insertions, 0 deletions
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)