summaryrefslogtreecommitdiff
path: root/tests/test_config_cmd.py
diff options
context:
space:
mode:
authorXavier de Gaye <xdegaye@users.sourceforge.net>2016-11-17 09:00:19 +0100
committerXavier de Gaye <xdegaye@users.sourceforge.net>2016-11-17 09:00:19 +0100
commit874f6ddbb74da00b9b323721cd79509fc1d5487b (patch)
treeb9a32d6442fdcfc3a19a15f1a989fd867a157da5 /tests/test_config_cmd.py
parent62a1a687116b05a3426b5dab8ea0375d119a22c5 (diff)
downloadpython-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_config_cmd.py')
-rw-r--r--tests/test_config_cmd.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_config_cmd.py b/tests/test_config_cmd.py
index 0c8dbd82..6e566e79 100644
--- a/tests/test_config_cmd.py
+++ b/tests/test_config_cmd.py
@@ -2,7 +2,7 @@
import unittest
import os
import sys
-from test.support import run_unittest
+from test.support import run_unittest, missing_compiler_executable
from distutils.command.config import dump_file, config
from distutils.tests import support
@@ -39,6 +39,9 @@ class ConfigTestCase(support.LoggingSilencer,
@unittest.skipIf(sys.platform == 'win32', "can't test on Windows")
def test_search_cpp(self):
+ cmd = missing_compiler_executable(['preprocessor'])
+ if cmd is not None:
+ self.skipTest('The %r command is not found' % cmd)
pkg_dir, dist = self.create_dist()
cmd = config(dist)