~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

Merge and cleanup pre-external-reference-repository tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
2744
2744
                   'bzrlib.tests.test_registry',
2745
2745
                   'bzrlib.tests.test_remote',
2746
2746
                   'bzrlib.tests.test_repository',
 
2747
                   'bzrlib.tests.per_repository_reference',
2747
2748
                   'bzrlib.tests.test_revert',
2748
2749
                   'bzrlib.tests.test_revision',
2749
2750
                   'bzrlib.tests.test_revisionspec',
2964
2965
 
2965
2966
def adapt_modules(mods_list, adapter, loader, suite):
2966
2967
    """Adapt the modules in mods_list using adapter and add to suite."""
2967
 
    for test in iter_suite_tests(loader.loadTestsFromModuleNames(mods_list)):
 
2968
    tests = loader.loadTestsFromModuleNames(mods_list)
 
2969
    adapt_tests(tests, adapter, suite)
 
2970
 
 
2971
 
 
2972
def adapt_tests(tests_list, adapter, suite):
 
2973
    """Adapt the tests in tests_list using adapter and add to suite."""
 
2974
    for test in iter_suite_tests(tests_list):
2968
2975
        suite.addTests(adapter.adapt(test))
2969
2976
 
2970
2977
 
2971
 
def adapt_tests(tests_list, adapter, loader, suite):
2972
 
    """Adapt the tests in tests_list using adapter and add to suite."""
2973
 
    for test in tests_list:
2974
 
        suite.addTests(adapter.adapt(loader.loadTestsFromName(test)))
2975
 
 
2976
 
 
2977
2978
def _rmtree_temp_dir(dirname):
2978
2979
    # If LANG=C we probably have created some bogus paths
2979
2980
    # which rmtree(unicode) will fail to delete