Testsuite problem - brittle test that fails depending on the path

James Westby jw+debian at jameswestby.net
Fri Feb 2 17:49:58 GMT 2007


My checkout help patch was sent without all the tests passing (cheeky I
know, but this was the failure):

errors:
'bzr: ERROR: Already a branch: sftp://foo:bar@localhost:44567/home/jw2328/devel/bzr/bzr.dev.helpcheckout/test0000.tmp/blackbox.test_init.TestSFTPInit.test_init_existing_branch/work.\n'

^^^^[log from bzrlib.tests.blackbox.test_init.TestSFTPInit.test_init_existing_branch]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jw2328/devel/bzr/bzr.dev.helpcheckout/bzrlib/tests/blackbox/test_init.py", line 127, in test_init_existing_branch
    self.assertFalse(re.search(r'checkout', err))
AssertionError

The test seems a little brittle to me, but I can't think of a way to
make it less so.

Thanks,

James

-- 
  James Westby   --    GPG Key ID: B577FE13    --     http://jameswestby.net/
  seccure key - (3+)k7|M*edCX/.A:n*N!>|&7U.L#9E)Tu)T0>AM - secp256r1/nistp256




More information about the bazaar mailing list