~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_setup.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-17 07:52:09 UTC
  • mfrom: (1910.3.4 trivial)
  • Revision ID: pqm@pqm.ubuntu.com-20060817075209-e85a1f9e05ff8b87
(andrew) Trivial fixes to NotImplemented errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006 Canonical Ltd
 
1
# Copyright (C) 2005, 2006 by Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
46
46
        """
47
47
        if not os.path.isfile('setup.py'):
48
48
            raise TestSkipped('There is no setup.py file in current directory')
49
 
        try:
50
 
            import distutils.sysconfig
51
 
            makefile_path = distutils.sysconfig.get_makefile_filename()
52
 
            if not os.path.exists(makefile_path):
53
 
                raise TestSkipped('You must have the python Makefile installed to run this test.'
54
 
                                  ' Usually this can be found by installing "python-dev"')
55
 
        except ImportError:
56
 
            raise TestSkipped('You must have distutils installed to run this test.'
57
 
                              ' Usually this can be found by installing "python-dev"')
58
49
        self.log('test_build running in %s' % os.getcwd())
59
50
        install_dir = tempfile.mkdtemp()
60
51
        # setup.py must be run from the root source directory, but the tests