/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/features.py

  • Committer: Parth Malwankar
  • Date: 2010-03-17 05:36:11 UTC
  • mfrom: (5091 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5092.
  • Revision ID: parth.malwankar@gmail.com-20100317053611-xpmn8gili6j191in
merged in trunk. fixed blackbox.test_upgrade to use backup.bzr.~N~ convention.

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
 
 
30
29
class _PosixPermissionsFeature(tests.Feature):
31
30
 
32
31
    def _probe(self):
49
48
    def feature_name(self):
50
49
        return 'POSIX permissions support'
51
50
 
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
 
 
 
51
PosixPermissionsFeature = _PosixPermissionsFeature()