~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/features.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-03-24 07:27:44 UTC
  • mfrom: (5094.3.2 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20100324072744-2fod6mq1jqijs7c0
(mbp, for parthm) inherit permissions on \~/.bazaar etc

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
pycurl = tests.ModuleAvailableFeature('pycurl')
27
27
subunit = tests.ModuleAvailableFeature('subunit')
28
28
 
 
29
 
29
30
class _PosixPermissionsFeature(tests.Feature):
30
31
 
31
32
    def _probe(self):
48
49
    def feature_name(self):
49
50
        return 'POSIX permissions support'
50
51
 
51
 
PosixPermissionsFeature = _PosixPermissionsFeature()
 
52
 
 
53
posix_permissions_feature = _PosixPermissionsFeature()
 
54
 
 
55
 
 
56
class _ChownFeature(tests.Feature):
 
57
    """os.chown is supported"""
 
58
 
 
59
    def _probe(self):
 
60
        return os.name == 'posix' and hasattr(os, 'chown')
 
61
 
 
62
chown_feature = _ChownFeature()
 
63