~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2010-02-16 16:08:40 UTC
  • mfrom: (4797.2.15 2.1)
  • mto: (4797.2.16 2.1)
  • mto: This revision was merged to the branch mainline in revision 5037.
  • Revision ID: john@arbash-meinel.com-20100216160840-xwbpuu0v89gq8lej
Tags: bzr-2.1.0
bring in the latest 2.1 changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Canonical Ltd
 
1
# Copyright (C) 2005-2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
4344
4344
CaseInsensitiveFilesystemFeature = _CaseInsensitiveFilesystemFeature()
4345
4345
 
4346
4346
 
 
4347
class _CaseSensitiveFilesystemFeature(Feature):
 
4348
 
 
4349
    def _probe(self):
 
4350
        if CaseInsCasePresFilenameFeature.available():
 
4351
            return False
 
4352
        elif CaseInsensitiveFilesystemFeature.available():
 
4353
            return False
 
4354
        else:
 
4355
            return True
 
4356
 
 
4357
    def feature_name(self):
 
4358
        return 'case-sensitive filesystem'
 
4359
 
 
4360
# new coding style is for feature instances to be lowercase
 
4361
case_sensitive_filesystem_feature = _CaseSensitiveFilesystemFeature()
 
4362
 
 
4363
 
4347
4364
# Kept for compatibility, use bzrlib.tests.features.subunit instead
4348
4365
SubUnitFeature = _CompatabilityThunkFeature('bzrlib.tests.features', 'subunit',
4349
4366
    'bzrlib.tests.SubUnitFeature', deprecated_in((2,1,0)))