~bzr/bzr/bzr.1.5

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_lock/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-05-08 23:03:13 UTC
  • mfrom: (3394.3.2 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20080508230313-knn3ibom6wt27w5k
(vila) Make the test suite use the new test loader

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
        return result
64
64
 
65
65
 
66
 
def test_suite():
67
 
    result = tests.TestSuite()
 
66
def load_tests(basic_tests, module, loader):
 
67
    result = loader.suiteClass()
 
68
    # add the tests for this module
 
69
    result.addTests(basic_tests)
 
70
 
68
71
    test_lock_implementations = [
69
72
        'bzrlib.tests.per_lock.test_lock',
70
73
        'bzrlib.tests.per_lock.test_temporary_write_lock',
71
74
        ]
72
75
    adapter = LockTestProviderAdapter(lock._lock_classes)
73
 
    loader = tests.TestLoader()
 
76
    # add the tests for the sub modules
74
77
    tests.adapt_modules(test_lock_implementations, adapter, loader, result)
75
78
    return result