~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/features.py

  • Committer: Vincent Ladeuil
  • Date: 2011-02-10 12:37:27 UTC
  • mto: This revision was merged to the branch mainline in revision 5661.
  • Revision ID: v.ladeuil+lp@free.fr-20110210123727-8e0pu4wtlt6fj7nf
thread is already a python module, avoid confusion and use cethread instead.

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
22
21
 
23
22
from bzrlib import (
24
23
    osutils,
43
42
not_running_as_root = _NotRunningAsRoot()
44
43
 
45
44
apport = tests.ModuleAvailableFeature('apport')
46
 
gpgme = tests.ModuleAvailableFeature('gpgme')
47
 
lzma = tests.ModuleAvailableFeature('lzma')
48
45
meliae = tests.ModuleAvailableFeature('meliae')
49
46
paramiko = tests.ModuleAvailableFeature('paramiko')
50
47
pycurl = tests.ModuleAvailableFeature('pycurl')
51
48
pywintypes = tests.ModuleAvailableFeature('pywintypes')
52
49
sphinx = tests.ModuleAvailableFeature('sphinx')
53
50
subunit = tests.ModuleAvailableFeature('subunit')
54
 
testtools = tests.ModuleAvailableFeature('testtools')
55
51
 
56
52
 
57
53
class _BackslashDirSeparatorFeature(tests.Feature):
130
126
bash_feature = ExecutableFeature('bash')
131
127
sed_feature = ExecutableFeature('sed')
132
128
diff_feature = ExecutableFeature('diff')
133
 
 
134
 
 
135
 
class Win32Feature(tests.Feature):
136
 
    """Feature testing whether we're running selftest on Windows
137
 
    or Windows-like platform.
138
 
    """
139
 
 
140
 
    def _probe(self):
141
 
        return sys.platform == 'win32'
142
 
 
143
 
    def feature_name(self):
144
 
        return "win32 platform"
145
 
 
146
 
win32_feature = Win32Feature()