bzr-0.0.5 selftest error on Mac OS X 10.4

John Whitley whitley at acm.org
Wed Jun 15 19:12:38 BST 2005


Hi all,

I've noted that testbzr has a couple of problems, one minor, one less- 
so, on my Mac OS X 10.4.1 system w/ Python 2.4.1 installed:

1) testbzr starts with "#!/usr/bin/python":
     This invokes the system python, ver. 2.3.5.  bzr itself uses  
"#! /usr/bin/env python" which
     picks up the correct version of python from my path.  Not a big  
deal, but handy for those
     of us without a default 2.4 install.

2) testbzr fails in bzr selftest with the following error:
     The problem appears to be caused by /tmp being a symlink to / 
private/tmp.  I'm new to the
     code here, but a quick skim looks like this is an edge case not  
handled by
     bzrlib.branch._relpath (or perhaps it's a test harness issue?).   
Error output from testbzr
     follows:

======================================================================
ERROR: runTest (bzrlib.whitebox.BranchPathTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/usr/local/src/bzr-0.0.5/bzrlib/whitebox.py", line 51, in  
runTest
     self.assertEqual(rp('foo/bar/quux'), 'foo/bar/quux')
   File "/usr/local/src/bzr-0.0.5/bzrlib/whitebox.py", line 24, in rp
     return _relpath(dtmp, p)
   File "/usr/local/src/bzr-0.0.5/bzrlib/branch.py", line 72, in  
_relpath
     raise NotBranchError("path %r is not within branch %r" % (rp,  
base))
NotBranchError: path '/private/tmp/tmpmJyZSZ/foo/bar/quux' is not  
within branch '/tmp/tmpmJyZSZ'

----------------------------------------------------------------------

-- John






More information about the bazaar mailing list