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

  • Committer: Martin Pool
  • Date: 2006-08-15 13:19:12 UTC
  • mfrom: (1923 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1925.
  • Revision ID: mbp@sourcefrog.net-20060815131912-7bbc6d387bb32d16
[merge] bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
from tempfile import TemporaryFile
25
25
 
26
26
import bzrlib
27
 
from bzrlib.tests import TestCase
 
27
from bzrlib.tests import TestCase, TestSkipped
28
28
import bzrlib.osutils as osutils
29
29
 
30
30
# XXX: This clobbers the build directory in the real source tree; it'd be nice
44
44
        This tests that the build process and man generator run correctly.
45
45
        It also can catch new subdirectories that weren't added to setup.py.
46
46
        """
47
 
 
 
47
        if not os.path.isfile('setup.py'):
 
48
            raise TestSkipped('There is no setup.py file in current directory')
48
49
        self.log('test_build running in %s' % os.getcwd())
49
50
        install_dir = tempfile.mkdtemp()
50
51
        # setup.py must be run from the root source directory, but the tests