[Pkg-bazaar-commits] ./bzr/unstable r910: patch from John

Martin Pool mbp at sourcefrog.net
Fri Apr 10 08:21:26 UTC 2009


------------------------------------------------------------
revno: 910
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Tue 2005-07-12 08:20:04 +1000
message:
  patch from John
  
  On Mac OSX /tmp is actually a symlink to /private/tmp
  so _relpath() fails because the real full path is different.
  
  The attached path just makes dtmp be expanded to it's real path, which
  makes the tests pass.
modified:
  bzrlib/selftest/whitebox.py
-------------- next part --------------
=== modified file 'bzrlib/selftest/whitebox.py'
--- a/bzrlib/selftest/whitebox.py	2005-07-11 03:40:02 +0000
+++ b/bzrlib/selftest/whitebox.py	2005-07-11 22:20:04 +0000
@@ -193,6 +193,8 @@
         
         savedir = os.getcwdu()
         dtmp = tempfile.mkdtemp()
+        # On Mac OSX, /tmp actually expands to /private/tmp
+        dtmp = os.path.realpath(dtmp)
 
         def rp(p):
             return _relpath(dtmp, p)



More information about the Pkg-bazaar-commits mailing list