~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2006-09-12 20:46:42 UTC
  • mto: This revision was merged to the branch mainline in revision 2071.
  • Revision ID: john@arbash-meinel.com-20060912204642-91599869cc863f07
Cleanup, deprecated, and get the tests passing again.

bzrlib.builtins.merge is heavily used by the test suite, though it is
really the wrong place for a function like that.
lazy imports work badly with doctests, but so far none of the doc tested
modules had anything worth testing in that fashion.

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
 
85
85
MODULES_TO_TEST = []
86
86
MODULES_TO_DOCTEST = [
87
 
                      bzrlib.branch,
88
87
                      bzrlib.bundle.serializer,
89
 
                      bzrlib.commands,
90
88
                      bzrlib.errors,
91
89
                      bzrlib.inventory,
92
90
                      bzrlib.iterablefile,
1483
1481
    for m in MODULES_TO_TEST:
1484
1482
        suite.addTest(loader.loadTestsFromModule(m))
1485
1483
    for m in MODULES_TO_DOCTEST:
1486
 
        suite.addTest(doctest.DocTestSuite(m))
 
1484
        try:
 
1485
            suite.addTest(doctest.DocTestSuite(m))
 
1486
        except ValueError, e:
 
1487
            print '**failed to get doctest for: %s\n%s' %(m,e)
 
1488
            raise
1487
1489
    for name, plugin in bzrlib.plugin.all_plugins().items():
1488
1490
        if getattr(plugin, 'test_suite', None) is not None:
1489
1491
            suite.addTest(plugin.test_suite())