Rev 3320: bzrlib.tests.branch_implementations switched from test_suite() to load_tests(). in file:///v/home/vila/src/bzr/experimental/faster-selftest/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Sun Mar 30 22:37:18 BST 2008
At file:///v/home/vila/src/bzr/experimental/faster-selftest/
------------------------------------------------------------
revno: 3320
revision-id: v.ladeuil+lp at free.fr-20080330213713-1fx909tx5sc8zqc0
parent: v.ladeuil+lp at free.fr-20080330213310-gd8llw1fsiziyy01
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: use-filter-by-module-test-loader
timestamp: Sun 2008-03-30 23:37:13 +0200
message:
bzrlib.tests.branch_implementations switched from test_suite() to load_tests().
* bzrlib/tests/branch_implementations/__init__.py:
(load_tests): Preferred to test_suite().
* bzrlib/tests/__init__.py:
(test_suite): bzrlib.tests.branch_implementations moved from
packages_to_test to testmod_names.
modified:
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
bzrlib/tests/branch_implementations/__init__.py __init__.py-20060123013057-b12a52c3f361daf4
-------------- next part --------------
=== modified file 'bzrlib/tests/__init__.py'
--- a/bzrlib/tests/__init__.py 2008-03-30 21:33:10 +0000
+++ b/bzrlib/tests/__init__.py 2008-03-30 21:37:13 +0000
@@ -116,7 +116,6 @@
The packages are not globally imported so that import failures are
triggered when running selftest, not when importing the command.
"""
- import bzrlib.tests.branch_implementations
import bzrlib.tests.bzrdir_implementations
import bzrlib.tests.commands
import bzrlib.tests.interrepository_implementations
@@ -129,7 +128,6 @@
import bzrlib.tests.tree_implementations
import bzrlib.tests.workingtree_implementations
return [
- bzrlib.tests.branch_implementations,
bzrlib.tests.bzrdir_implementations,
bzrlib.tests.commands,
bzrlib.tests.interrepository_implementations,
@@ -2658,6 +2656,8 @@
testmod_names = [
'bzrlib.doc',
'bzrlib.util.tests.test_bencode',
+ 'bzrlib.tests.blackbox',
+ 'bzrlib.tests.branch_implementations',
'bzrlib.tests.test__dirstate_helpers',
'bzrlib.tests.test_ancestry',
'bzrlib.tests.test_annotate',
@@ -2665,7 +2665,6 @@
'bzrlib.tests.test_atomicfile',
'bzrlib.tests.test_bad_files',
'bzrlib.tests.test_bisect_multi',
- 'bzrlib.tests.blackbox',
'bzrlib.tests.test_branch',
'bzrlib.tests.test_branchbuilder',
'bzrlib.tests.test_bugtracker',
=== modified file 'bzrlib/tests/branch_implementations/__init__.py'
--- a/bzrlib/tests/branch_implementations/__init__.py 2007-06-28 05:19:04 +0000
+++ b/bzrlib/tests/branch_implementations/__init__.py 2008-03-30 21:37:13 +0000
@@ -135,8 +135,11 @@
return tree
-def test_suite():
- result = tests.TestSuite()
+def load_tests(basic_tests, module, loader):
+ result = loader.suiteClass()
+ # add the tests for this module
+ result.addTests(basic_tests)
+
test_branch_implementations = [
'bzrlib.tests.branch_implementations.test_bound_sftp',
'bzrlib.tests.branch_implementations.test_branch',
More information about the bazaar-commits
mailing list