/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-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:
21
21
import sys
22
22
import subprocess
23
23
 
24
 
import brzlib
25
 
from brzlib import tests
 
24
import breezy
 
25
from breezy 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
40
40
        """
41
41
        # setup.py must be run from the root source directory, but the tests
42
42
        # are not necessarily invoked from there
43
 
        self.source_dir = os.path.dirname(os.path.dirname(brzlib.__file__))
 
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
45
            self.skip(
46
 
                'There is no setup.py file adjacent to the brzlib directory')
 
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()