[Checkins] SVN: zc.buildout/trunk/src/zc/buildout/testing.py setuptools seems to call os.path.realpath on the paths of working set items.

Michael Howitz mh at gocept.com
Sun May 10 09:19:54 EDT 2009


Log message for revision 99818:
  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.
  

Changed:
  U   zc.buildout/trunk/src/zc/buildout/testing.py

-=-
Modified: zc.buildout/trunk/src/zc/buildout/testing.py
===================================================================
--- zc.buildout/trunk/src/zc/buildout/testing.py	2009-05-10 08:25:10 UTC (rev 99817)
+++ zc.buildout/trunk/src/zc/buildout/testing.py	2009-05-10 13:19:54 UTC (rev 99818)
@@ -212,6 +212,7 @@
 
 
     base = tempfile.mkdtemp('buildoutSetUp')
+    base = os.path.realpath(base)
     register_teardown(lambda base=base: rmtree(base))
 
     old_home = os.environ.get('HOME')



More information about the Checkins mailing list