~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/features.py

  • Committer: Vincent Ladeuil
  • Date: 2011-06-16 18:34:26 UTC
  • mfrom: (5609.46.3 2.3.4-dev)
  • mto: This revision was merged to the branch mainline in revision 5980.
  • Revision ID: v.ladeuil+lp@free.fr-20110616183426-oj818x56zm7yzvb8
Merge 2.3 into trunk

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 (
23
24
    osutils,
127
128
bash_feature = ExecutableFeature('bash')
128
129
sed_feature = ExecutableFeature('sed')
129
130
diff_feature = ExecutableFeature('diff')
 
131
 
 
132
 
 
133
class Win32Feature(tests.Feature):
 
134
    """Feature testing whether we're running selftest on Windows
 
135
    or Windows-like platform.
 
136
    """
 
137
 
 
138
    def _probe(self):
 
139
        return sys.platform == 'win32'
 
140
 
 
141
    def feature_name(self):
 
142
        return "win32 platform"
 
143
 
 
144
win32_feature = Win32Feature()