/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: 2017-05-21 18:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521181028-zn04pdfw0od9hfj3
Rename brzlib => breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
import sys
24
24
import tempfile
25
25
 
26
 
from brzlib import (
 
26
from breezy import (
27
27
    osutils,
28
28
    symbol_versioning,
29
29
    )
135
135
 
136
136
    def _ensure(self):
137
137
        if self._feature is None:
138
 
            from brzlib import pyutils
 
138
            from breezy import pyutils
139
139
            depr_msg = self._dep_version % ('%s.%s'
140
140
                                            % (self._module, self._name))
141
141
            use_msg = ' Use %s.%s instead.' % (self._replacement_module,
235
235
    """Does this platform support the breakin feature?"""
236
236
 
237
237
    def _probe(self):
238
 
        from brzlib import breakin
 
238
        from breezy import breakin
239
239
        if breakin.determine_signal() is None:
240
240
            return False
241
241
        if sys.platform == 'win32':
290
290
        if CaseInsCasePresFilenameFeature.available():
291
291
            return False
292
292
 
293
 
        from brzlib import tests
 
293
        from breezy import tests
294
294
 
295
295
        if tests.TestCaseWithMemoryTransport.TEST_ROOT is None:
296
296
            root = osutils.mkdtemp(prefix='testbzr-', suffix='.tmp')
356
356
testtools = ModuleAvailableFeature('testtools')
357
357
 
358
358
compiled_patiencediff_feature = ModuleAvailableFeature(
359
 
    'brzlib._patiencediff_c')
360
 
lsprof_feature = ModuleAvailableFeature('brzlib.lsprof')
 
359
    'breezy._patiencediff_c')
 
360
lsprof_feature = ModuleAvailableFeature('breezy.lsprof')
361
361
 
362
362
 
363
363
class _BackslashDirSeparatorFeature(Feature):
497
497
class _ColorFeature(Feature):
498
498
 
499
499
    def _probe(self):
500
 
        from brzlib._termcolor import allow_color
 
500
        from breezy._termcolor import allow_color
501
501
        return allow_color()
502
502
 
503
503
    def feature_name(self):