Commit 9fd8ce47 authored by icemac's avatar icemac

setuptools seems to call os.path.realpath on the paths of working set items.

On Mac OS X the path returned by tempfile.mkdtemp is not the real path.
This makes the realtive_path test of easy_install.txt failing.
Calling os.path.realpath on the base directory fixed this testfailure for python 2.4 - 2.6.


git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@99818 62d5b8a3-27da-0310-9561-8e5933582275
parent d8244881
...@@ -212,6 +212,7 @@ def buildoutSetUp(test): ...@@ -212,6 +212,7 @@ def buildoutSetUp(test):
base = tempfile.mkdtemp('buildoutSetUp') base = tempfile.mkdtemp('buildoutSetUp')
base = os.path.realpath(base)
register_teardown(lambda base=base: rmtree(base)) register_teardown(lambda base=base: rmtree(base))
old_home = os.environ.get('HOME') old_home = os.environ.get('HOME')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment