[Python-checkins] cpython: Issue #12765: Fix packaging.test.test_database failures on OS X due

ned.deily python-checkins at python.org
Fri Sep 16 00:10:30 CEST 2011


http://hg.python.org/cpython/rev/d3e072083ff3
changeset: 72391:d3e072083ff3
parent: 72388:03843a8d3244
user: Ned Deily <nad at acm.org>
date: Thu Sep 15 15:09:23 2011 -0700
summary:
 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).
files:
 Lib/packaging/tests/test_database.py | 1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Lib/packaging/tests/test_database.py b/Lib/packaging/tests/test_database.py
--- a/Lib/packaging/tests/test_database.py
+++ b/Lib/packaging/tests/test_database.py
@@ -50,6 +50,7 @@
 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)
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /