/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/test_setup.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-22 00:56:52 UTC
  • mfrom: (6621.2.26 py3_pokes)
  • Revision ID: jelmer@jelmer.uk-20170522005652-yjahcr9hwmjkno7n
Merge Python3 porting work ('py3 pokes')

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
import subprocess
23
23
 
24
24
import breezy
25
 
from breezy import tests
 
25
from .. import tests
26
26
 
27
27
# TODO: Run bzr from the installed copy to see if it works.  Really we need to
28
28
# run something that exercises every module, just starting it may not detect
42
42
        # are not necessarily invoked from there
43
43
        self.source_dir = os.path.dirname(os.path.dirname(breezy.__file__))
44
44
        if not os.path.isfile(os.path.join(self.source_dir, 'setup.py')):
45
 
            self.skip(
 
45
            self.skipTest(
46
46
                'There is no setup.py file adjacent to the breezy directory')
47
47
        try:
48
48
            import distutils.sysconfig
49
49
            makefile_path = distutils.sysconfig.get_makefile_filename()
50
50
            if not os.path.exists(makefile_path):
51
 
                self.skip(
 
51
                self.skipTest(
52
52
                    'You must have the python Makefile installed to run this'
53
53
                    ' test. Usually this can be found by installing'
54
54
                    ' "python-dev"')
55
55
        except ImportError:
56
 
            self.skip(
 
56
            self.skipTest(
57
57
                'You must have distutils installed to run this test.'
58
58
                ' Usually this can be found by installing "python-dev"')
59
59
        self.log('test_build running from %s' % self.source_dir)