~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/features.py

  • Committer: Jelmer Vernooij
  • Date: 2012-02-01 19:18:09 UTC
  • mfrom: (6459 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6460.
  • Revision ID: jelmer@samba.org-20120201191809-xn340a5i5v4fqsfu
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
352
352
paramiko = ModuleAvailableFeature('paramiko')
353
353
pycurl = ModuleAvailableFeature('pycurl')
354
354
pywintypes = ModuleAvailableFeature('pywintypes')
 
355
sphinx = ModuleAvailableFeature('sphinx')
355
356
subunit = ModuleAvailableFeature('subunit')
356
357
testtools = ModuleAvailableFeature('testtools')
357
358
 
492
493
 
493
494
 
494
495
win32_feature = Win32Feature()
495
 
 
496
 
 
497
 
class _ColorFeature(Feature):
498
 
 
499
 
    def _probe(self):
500
 
        from bzrlib._termcolor import allow_color
501
 
        return allow_color()
502
 
 
503
 
    def feature_name(self):
504
 
        return "Terminal supports color."
505
 
 
506
 
ColorFeature = _ColorFeature()