~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: 2008-11-11 03:35:23 UTC
  • mfrom: (3825.3.2 branchbuilder)
  • Revision ID: pqm@pqm.ubuntu.com-20081111033523-xbz2o8weoyl4d0l7
(mbp) fix up branchbuilder doctests

Show diffs side-by-side

added added

removed removed

Lines of Context:
2953
2953
 
2954
2954
    modules_to_doctest = [
2955
2955
        'bzrlib',
2956
 
        'bzrlib.errors',
 
2956
        'bzrlib.branchbuilder',
2957
2957
        'bzrlib.export',
2958
2958
        'bzrlib.inventory',
2959
2959
        'bzrlib.iterablefile',
2960
2960
        'bzrlib.lockdir',
2961
2961
        'bzrlib.merge3',
2962
2962
        'bzrlib.option',
2963
 
        'bzrlib.store',
2964
2963
        'bzrlib.symbol_versioning',
2965
2964
        'bzrlib.tests',
2966
2965
        'bzrlib.timestamp',
2976
2975
        except ValueError, e:
2977
2976
            print '**failed to get doctest for: %s\n%s' % (mod, e)
2978
2977
            raise
 
2978
        if len(doc_suite._tests) == 0:
 
2979
            raise errors.BzrError("no doctests found in %s" % (mod,))
2979
2980
        suite.addTest(doc_suite)
2980
2981
 
2981
2982
    default_encoding = sys.getdefaultencoding()