~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Patch Queue Manager
  • Date: 2011-11-21 00:32:54 UTC
  • mfrom: (6280.1.2 892622-feature-api)
  • Revision ID: pqm@pqm.ubuntu.com-20111121003254-321qb4a08o2a3cji
(mbp) restore old api name bzrlib.tests.Features to unbreak some plugins
 (Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
    )
101
101
from bzrlib.ui import NullProgressView
102
102
from bzrlib.ui.text import TextUIFactory
 
103
from bzrlib.tests.features import _CompatabilityThunkFeature
103
104
 
104
105
# Mark this python module as being part of the implementation
105
106
# of unittest: this gives us better tracebacks where the last
4462
4463
    pass
4463
4464
 
4464
4465
 
4465
 
@deprecated_function(deprecated_in((2, 5, 0)))
4466
 
def ModuleAvailableFeature(name):
4467
 
    from bzrlib.tests import features
4468
 
    return features.ModuleAvailableFeature(name)
4469
 
    
 
4466
# API compatibility for old plugins; see bug 892622.
 
4467
for name in [
 
4468
    'Feature',
 
4469
    'HTTPServerFeature', 
 
4470
    'ModuleAvailableFeature',
 
4471
    'HTTPSServerFeature', 'SymlinkFeature', 'HardlinkFeature',
 
4472
    'OsFifoFeature', 'UnicodeFilenameFeature',
 
4473
    'ByteStringNamedFilesystem', 'UTF8Filesystem',
 
4474
    'BreakinFeature', 'CaseInsCasePresFilenameFeature',
 
4475
    'CaseInsensitiveFilesystemFeature', 'case_sensitive_filesystem_feature',
 
4476
    'posix_permissions_feature',
 
4477
    ]:
 
4478
    globals()[name] = _CompatabilityThunkFeature(
 
4479
        symbol_versioning.deprecated_in((2, 5, 0)),
 
4480
        'bzrlib.tests', name,
 
4481
        name, 'bzrlib.tests.features')
 
4482
 
 
4483
 
 
4484
for (old_name, new_name) in [
 
4485
    ('UnicodeFilename', 'UnicodeFilenameFeature'),
 
4486
    ]:
 
4487
    globals()[name] = _CompatabilityThunkFeature(
 
4488
        symbol_versioning.deprecated_in((2, 5, 0)),
 
4489
        'bzrlib.tests', old_name,
 
4490
        new_name, 'bzrlib.tests.features')