~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

Merge in real stacked repository work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2705
2705
                   'bzrlib.tests.test_registry',
2706
2706
                   'bzrlib.tests.test_remote',
2707
2707
                   'bzrlib.tests.test_repository',
 
2708
                   'bzrlib.tests.repository_external_reference_implementations',
2708
2709
                   'bzrlib.tests.test_revert',
2709
2710
                   'bzrlib.tests.test_revision',
2710
2711
                   'bzrlib.tests.test_revisionnamespaces',
2897
2898
 
2898
2899
def adapt_modules(mods_list, adapter, loader, suite):
2899
2900
    """Adapt the modules in mods_list using adapter and add to suite."""
2900
 
    for test in iter_suite_tests(loader.loadTestsFromModuleNames(mods_list)):
 
2901
    tests = loader.loadTestsFromModuleNames(mods_list)
 
2902
    adapt_tests(tests, adapter, suite)
 
2903
 
 
2904
 
 
2905
def adapt_tests(tests_list, adapter, suite):
 
2906
    """Adapt the tests in tests_list using adapter and add to suite."""
 
2907
    for test in iter_suite_tests(tests_list):
2901
2908
        suite.addTests(adapter.adapt(test))
2902
2909
 
2903
2910
 
2904
 
def adapt_tests(tests_list, adapter, loader, suite):
2905
 
    """Adapt the tests in tests_list using adapter and add to suite."""
2906
 
    for test in tests_list:
2907
 
        suite.addTests(adapter.adapt(loader.loadTestsFromName(test)))
2908
 
 
2909
 
 
2910
2911
def _rmtree_temp_dir(dirname):
2911
2912
    # If LANG=C we probably have created some bogus paths
2912
2913
    # which rmtree(unicode) will fail to delete