diff options
| author | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-11-17 09:00:19 +0100 |
|---|---|---|
| committer | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-11-17 09:00:19 +0100 |
| commit | 874f6ddbb74da00b9b323721cd79509fc1d5487b (patch) | |
| tree | b9a32d6442fdcfc3a19a15f1a989fd867a157da5 /tests/test_install.py | |
| parent | 62a1a687116b05a3426b5dab8ea0375d119a22c5 (diff) | |
| download | python-setuptools-git-874f6ddbb74da00b9b323721cd79509fc1d5487b.tar.gz | |
Issue 26931: Skip the test_distutils tests using a compiler executable
that is not found
Diffstat (limited to 'tests/test_install.py')
| -rw-r--r-- | tests/test_install.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_install.py b/tests/test_install.py index 9313330e..287ab198 100644 --- a/tests/test_install.py +++ b/tests/test_install.py @@ -17,6 +17,7 @@ from distutils.errors import DistutilsOptionError from distutils.extension import Extension from distutils.tests import support +from test import support as test_support def _make_ext_name(modname): @@ -196,6 +197,9 @@ class InstallTestCase(support.TempdirManager, self.assertEqual(found, expected) def test_record_extensions(self): + cmd = test_support.missing_compiler_executable() + if cmd is not None: + self.skipTest('The %r command is not found' % cmd) install_dir = self.mkdtemp() project_dir, dist = self.create_dist(ext_modules=[ Extension('xx', ['xxmodule.c'])]) |
