mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue 26931: Skip the test_distutils tests using a compiler executable
that is not found
This commit is contained in:
parent
00305ade58
commit
dfc13e069a
6 changed files with 46 additions and 25 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue