~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-10-11 09:26:57 UTC
  • mfrom: (1996.3.37 use_lazy_importer)
  • Revision ID: pqm@pqm.ubuntu.com-20061011092657-e42bec6ef14c036c
(John Arbash Meinel) use lazy importing to improve startup time

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
 
1690
1686
    for m in MODULES_TO_TEST:
1691
1687
        suite.addTest(loader.loadTestsFromModule(m))
1692
1688
    for m in MODULES_TO_DOCTEST:
1693
 
        suite.addTest(doctest.DocTestSuite(m))
 
1689
        try:
 
1690
            suite.addTest(doctest.DocTestSuite(m))
 
1691
        except ValueError, e:
 
1692
            print '**failed to get doctest for: %s\n%s' %(m,e)
 
1693
            raise
1694
1694
    for name, plugin in bzrlib.plugin.all_plugins().items():
1695
1695
        if getattr(plugin, 'test_suite', None) is not None:
1696
1696
            suite.addTest(plugin.test_suite())