/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2006-10-13 07:22:23 UTC
  • mfrom: (2076 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2077.
  • Revision ID: john@arbash-meinel.com-20061013072223-9d1320456e7df776
[merge] bzr.dev 2076

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
 
88
88
MODULES_TO_TEST = []
89
89
MODULES_TO_DOCTEST = [
90
 
                      bzrlib.branch,
91
90
                      bzrlib.bundle.serializer,
92
 
                      bzrlib.commands,
93
91
                      bzrlib.errors,
94
92
                      bzrlib.export,
95
93
                      bzrlib.inventory,
97
95
                      bzrlib.lockdir,
98
96
                      bzrlib.merge3,
99
97
                      bzrlib.option,
100
 
                      bzrlib.osutils,
101
98
                      bzrlib.store,
102
 
                      bzrlib.transport,
103
99
                      ]
104
100
 
105
101
 
1312
1308
        made_control = self.make_bzrdir(relpath, format=format)
1313
1309
        return made_control.create_repository(shared=shared)
1314
1310
 
1315
 
    def make_branch_and_memory_tree(self, relpath):
 
1311
    def make_branch_and_memory_tree(self, relpath, format=None):
1316
1312
        """Create a branch on the default transport and a MemoryTree for it."""
1317
 
        b = self.make_branch(relpath)
 
1313
        b = self.make_branch(relpath, format=format)
1318
1314
        return memorytree.MemoryTree.create_on_branch(b)
1319
1315
 
1320
1316
    def overrideEnvironmentForTesting(self):
1637
1633
                   'bzrlib.tests.test_inv',
1638
1634
                   'bzrlib.tests.test_knit',
1639
1635
                   'bzrlib.tests.test_lazy_import',
 
1636
                   'bzrlib.tests.test_lazy_regex',
1640
1637
                   'bzrlib.tests.test_lockdir',
1641
1638
                   'bzrlib.tests.test_lockable_files',
1642
1639
                   'bzrlib.tests.test_log',
1655
1652
                   'bzrlib.tests.test_plugins',
1656
1653
                   'bzrlib.tests.test_progress',
1657
1654
                   'bzrlib.tests.test_reconcile',
 
1655
                   'bzrlib.tests.test_registry',
1658
1656
                   'bzrlib.tests.test_repository',
1659
1657
                   'bzrlib.tests.test_revert',
1660
1658
                   'bzrlib.tests.test_revision',
1708
1706
    for m in MODULES_TO_TEST:
1709
1707
        suite.addTest(loader.loadTestsFromModule(m))
1710
1708
    for m in MODULES_TO_DOCTEST:
1711
 
        suite.addTest(doctest.DocTestSuite(m))
 
1709
        try:
 
1710
            suite.addTest(doctest.DocTestSuite(m))
 
1711
        except ValueError, e:
 
1712
            print '**failed to get doctest for: %s\n%s' %(m,e)
 
1713
            raise
1712
1714
    for name, plugin in bzrlib.plugin.all_plugins().items():
1713
1715
        if getattr(plugin, 'test_suite', None) is not None:
1714
1716
            suite.addTest(plugin.test_suite())