~bzr/ubuntu/hardy/bzr/bzr-ppa

« back to all changes in this revision

Viewing changes to bzrlib/tests/features.py

  • Committer: Max Bowsher
  • Date: 2011-07-17 23:30:45 UTC
  • mfrom: (76.3.42 karmic)
  • Revision ID: _@maxb.eu-20110717233045-n093joucqnux0sq8
Tags: 2.3.4-0~bazaar1~hardy1
MergeĀ 2.3.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import os
20
20
import stat
 
21
import sys
21
22
 
22
23
from bzrlib import tests
23
24
 
131
132
bash_feature = ExecutableFeature('bash')
132
133
sed_feature = ExecutableFeature('sed')
133
134
diff_feature = ExecutableFeature('diff')
 
135
 
 
136
 
 
137
class Win32Feature(tests.Feature):
 
138
    """Feature testing whether we're running selftest on Windows
 
139
    or Windows-like platform.
 
140
    """
 
141
 
 
142
    def _probe(self):
 
143
        return sys.platform == 'win32'
 
144
 
 
145
    def feature_name(self):
 
146
        return "win32 platform"
 
147
 
 
148
win32_feature = Win32Feature()