~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 04:52:05 UTC
  • mfrom: (3825.3.5 branchbuilder)
  • Revision ID: pqm@pqm.ubuntu.com-20081111045205-junyogmq9uajfg6z
(mbp) doctests only report the first failure

Show diffs side-by-side

added added

removed removed

Lines of Context:
2971
2971
            # No tests to keep here, move along
2972
2972
            continue
2973
2973
        try:
2974
 
            doc_suite = doctest.DocTestSuite(mod)
 
2974
            # note that this really does mean "report only" -- doctest 
 
2975
            # still runs the rest of the examples
 
2976
            doc_suite = doctest.DocTestSuite(mod,
 
2977
                optionflags=doctest.REPORT_ONLY_FIRST_FAILURE)
2975
2978
        except ValueError, e:
2976
2979
            print '**failed to get doctest for: %s\n%s' % (mod, e)
2977
2980
            raise