~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-06-20 08:10:38 UTC
  • mfrom: (1740.6.2 bzr.mbp.remove-scratch)
  • Revision ID: pqm@pqm.ubuntu.com-20060620081038-8eb4543e54b8491c
(mbp) remove Scratch objects

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
import codecs
30
30
from cStringIO import StringIO
31
31
import difflib
 
32
import doctest
32
33
import errno
33
34
import logging
34
35
import os
1201
1202
    This function can be replaced if you need to change the default test
1202
1203
    suite on a global basis, but it is not encouraged.
1203
1204
    """
1204
 
    from doctest import DocTestSuite
1205
 
 
1206
 
    global MODULES_TO_DOCTEST
1207
 
 
1208
 
    testmod_names = [ \
 
1205
    testmod_names = [
1209
1206
                   'bzrlib.tests.test_ancestry',
1210
1207
                   'bzrlib.tests.test_api',
1211
1208
                   'bzrlib.tests.test_bad_files',
1295
1292
        suite.addTest(package.test_suite())
1296
1293
    for m in MODULES_TO_TEST:
1297
1294
        suite.addTest(loader.loadTestsFromModule(m))
1298
 
    for m in (MODULES_TO_DOCTEST):
1299
 
        suite.addTest(DocTestSuite(m))
 
1295
    for m in MODULES_TO_DOCTEST:
 
1296
        suite.addTest(doctest.DocTestSuite(m))
1300
1297
    for name, plugin in bzrlib.plugin.all_plugins().items():
1301
1298
        if getattr(plugin, 'test_suite', None) is not None:
1302
1299
            suite.addTest(plugin.test_suite())