/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 breezy/tests/features.py

  • Committer: Jelmer Vernooij
  • Date: 2019-03-04 10:18:17 UTC
  • mto: (7290.1.14 work)
  • mto: This revision was merged to the branch mainline in revision 7295.
  • Revision ID: jelmer@jelmer.uk-20190304101817-ikhgnhr0cv4opjd1
Install cython from pip in byov.

Show diffs side-by-side

added added

removed removed

Lines of Context:
404
404
testtools = ModuleAvailableFeature('testtools')
405
405
flake8 = ModuleAvailableFeature('flake8.api.legacy')
406
406
 
 
407
compiled_patiencediff_feature = ModuleAvailableFeature(
 
408
    'breezy._patiencediff_c')
407
409
lsprof_feature = ModuleAvailableFeature('breezy.lsprof')
408
410
pkg_resources_feature = ModuleAvailableFeature('pkg_resources')
409
411
 
566
568
 
567
569
 
568
570
BackslashFilenameFeature = _BackslashFilenameFeature()
569
 
 
570
 
 
571
 
class PathFeature(Feature):
572
 
    """Feature testing whether a particular path exists."""
573
 
 
574
 
    def __init__(self, path):
575
 
        super(PathFeature, self).__init__()
576
 
        self.path = path
577
 
 
578
 
    def _probe(self):
579
 
        return os.path.exists(self.path)
580
 
 
581
 
    def feature_name(self):
582
 
        return "%s exists" % self.path