~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2011-05-11 11:35:28 UTC
  • mto: This revision was merged to the branch mainline in revision 5851.
  • Revision ID: john@arbash-meinel.com-20110511113528-qepibuwxicjrbb2h
Break compatibility with python <2.6.

This includes auditing the code for places where we were doing
explicit 'sys.version' checks and removing them as appropriate.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
from bzrlib.revisiontree import RevisionTree
39
39
from bzrlib.transform import TransformPreview
40
40
from bzrlib.workingtree import (
41
 
    WorkingTreeFormat,
42
 
    _legacy_formats,
 
41
    format_registry,
43
42
    )
44
43
from bzrlib.workingtree_4 import (
45
44
    DirStateRevisionTree,
333
332
        # for working tree format tests, preserve the tree
334
333
        scenario[1]["_workingtree_to_test_tree"] = return_parameter
335
334
    # add RevisionTree scenario
336
 
    workingtree_format = WorkingTreeFormat._default_format
 
335
    workingtree_format = format_registry.get_default()
337
336
    scenarios.append((RevisionTree.__name__,
338
337
        create_tree_scenario(transport_server, transport_readonly_server,
339
338
        workingtree_format, revision_tree_from_workingtree,)))
375
374
def load_tests(standard_tests, module, loader):
376
375
    per_tree_mod_names = [
377
376
        'annotate_iter',
 
377
        'export',
378
378
        'get_file_mtime',
379
379
        'get_file_with_stat',
380
380
        'get_root_id',
381
381
        'get_symlink_target',
382
382
        'inv',
383
383
        'iter_search_rules',
 
384
        'is_executable',
384
385
        'list_files',
385
386
        'locking',
386
387
        'path_content_summary',
397
398
        # None here will cause a readonly decorator to be created
398
399
        # by the TestCaseWithTransport.get_readonly_transport method.
399
400
        None,
400
 
        WorkingTreeFormat._formats.values() + _legacy_formats)
 
401
        format_registry._get_all())
401
402
    # add the tests for the sub modules
402
403
    return tests.multiply_tests(submod_tests, scenarios, standard_tests)