[PATCH] small test_selftest fixes
Alexander Belchenko
bialix at ukr.net
Fri Sep 29 11:03:23 BST 2006
test_selftest fixes: if you test run_bzr_subprocess then don't load plugins.
Otherwise if some plugins cannot be loaded with tested version of bzr
you have garbage in stderr that unrelated to the test itself.
Like this:
======================================================================
FAIL: test_run_bzr_subprocess_env
(bzrlib.tests.blackbox.test_selftest.TestRunBzrSubprocess)
vvvv[log from
bzrlib.tests.blackbox.test_selftest.TestRunBzrSubprocess.test_run_bzr_subprocess_env]
^^^^[log from
bzrlib.tests.blackbox.test_selftest.TestRunBzrSubprocess.test_run_bzr_subprocess_env]
----------------------------------------------------------------------
Traceback (most recent call last):
File
"D:\Bazaar\sandbox\smart-server\bzrlib\tests\blackbox\test_selftest.py",
line 275, in test_run_bzr_subprocess_env
self.assertEqual('', err)
AssertionError: '' != 'Bzrtools is not up to date with installed bzr
version 0.12.0dev0. \nThere should be a newer version available, e.g.
0.12.\n'
======================================================================
--
Alexander
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test_selftest.fix.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20060929/be36fc90/attachment.diff
More information about the bazaar
mailing list