~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/doc/api/__init__.py

Merge up bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
from bzrlib import tests
31
31
 
32
 
def test_suite():
 
32
def load_tests(basic_tests, module, loader):
 
33
    """This module creates its own test suite with DocFileSuite."""
 
34
 
33
35
    dir_ = os.path.dirname(__file__)
34
36
    if os.path.isdir(dir_):
35
37
        candidates = os.listdir(dir_)
37
39
        candidates = []
38
40
    scripts = [candidate for candidate in candidates
39
41
               if candidate.endswith('.txt')]
 
42
    # since this module doesn't define tests, we ignore basic_tests
40
43
    suite = doctest.DocFileSuite(*scripts)
41
44
    # DocFileCase reduces the test id to the base name of the tested file, we
42
45
    # want the module to appears there.