~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/__init__.py

  • Committer: Martin Pool
  • Date: 2005-07-18 11:37:33 UTC
  • Revision ID: mbp@sourcefrog.net-20050718113733-39beb81b0e1ead4d
- don't intern weave text; it doesn't seem to help

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
MODULES_TO_TEST = []
21
21
MODULES_TO_DOCTEST = []
22
22
 
23
 
def selftest(verbose=False):
 
23
def selftest():
24
24
    from unittest import TestLoader, TestSuite
25
25
    import bzrlib, bzrlib.store, bzrlib.inventory, bzrlib.branch
26
26
    import bzrlib.osutils, bzrlib.commands, bzrlib.merge3, bzrlib.plugin
34
34
    import bzrlib.selftest.testrevisionnamespaces
35
35
    import bzrlib.selftest.testbranch
36
36
    import bzrlib.selftest.teststatus
37
 
    import bzrlib.selftest.testinv
38
37
    import bzrlib.merge_core
39
38
    from doctest import DocTestSuite
40
39
    import os
47
46
              bzrlib.osutils, bzrlib.commands, bzrlib.merge3):
48
47
        if m not in MODULES_TO_DOCTEST:
49
48
            MODULES_TO_DOCTEST.append(m)
50
 
    
51
 
    # ugly ugly!
 
49
            
52
50
    for m in (bzrlib.selftest.whitebox,
53
51
              bzrlib.selftest.versioning,
54
 
              bzrlib.selftest.testinv,
55
52
              bzrlib.selftest.testmerge3,
56
53
              bzrlib.selftest.testhashcache,
57
54
              bzrlib.selftest.teststatus,
89
86
 
90
87
    suite.addTest(unittest.makeSuite(bzrlib.merge_core.MergeTest, 'test_'))
91
88
 
92
 
    return run_suite(suite, 'testbzr', verbose=verbose)
 
89
    return run_suite(suite, 'testbzr')
93
90
 
94
91
 
95
92