~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Martin Pool
  • Date: 2006-06-20 03:57:11 UTC
  • mto: This revision was merged to the branch mainline in revision 1798.
  • Revision ID: mbp@sourcefrog.net-20060620035711-400bb6b6bc6ff95b
Add pyflakes makefile target; fix many warnings

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
from bzrlib.transport.local import LocalRelpathServer
70
70
from bzrlib.transport.readonly import ReadonlyServer
71
71
from bzrlib.trace import mutter
72
 
from bzrlib.tests.TestUtil import TestLoader, TestSuite
 
72
from bzrlib.tests import TestUtil
 
73
from bzrlib.tests.TestUtil import (
 
74
                          TestSuite,
 
75
                          TestLoader,
 
76
                          )
73
77
from bzrlib.tests.treeshape import build_tree_contents
74
78
import bzrlib.urlutils as urlutils
75
79
from bzrlib.workingtree import WorkingTree, WorkingTreeFormat2
1129
1133
 
1130
1134
 
1131
1135
def filter_suite_by_re(suite, pattern):
1132
 
    result = TestSuite()
 
1136
    result = TestUtil.TestSuite()
1133
1137
    filter_re = re.compile(pattern)
1134
1138
    for test in iter_suite_tests(suite):
1135
1139
        if filter_re.search(test.id()):
1271
1275
    test_transport_implementations = [
1272
1276
        'bzrlib.tests.test_transport_implementations']
1273
1277
 
1274
 
    suite = TestSuite()
 
1278
    suite = TestUtil.TestSuite()
1275
1279
    loader = TestUtil.TestLoader()
1276
1280
    from bzrlib.transport import TransportTestProviderAdapter
1277
1281
    adapter = TransportTestProviderAdapter()