mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +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
|
|
@ -41,6 +41,9 @@ class BuildExtTestCase(TempdirManager,
|
|||
return build_ext(*args, **kwargs)
|
||||
|
||||
def test_build_ext(self):
|
||||
cmd = support.missing_compiler_executable()
|
||||
if cmd is not None:
|
||||
self.skipTest('The %r command is not found' % cmd)
|
||||
global ALREADY_TESTED
|
||||
copy_xxmodule_c(self.tmp_dir)
|
||||
xx_c = os.path.join(self.tmp_dir, 'xxmodule.c')
|
||||
|
|
@ -295,6 +298,9 @@ class BuildExtTestCase(TempdirManager,
|
|||
self.assertEqual(cmd.compiler, 'unix')
|
||||
|
||||
def test_get_outputs(self):
|
||||
cmd = support.missing_compiler_executable()
|
||||
if cmd is not None:
|
||||
self.skipTest('The %r command is not found' % cmd)
|
||||
tmp_dir = self.mkdtemp()
|
||||
c_file = os.path.join(tmp_dir, 'foo.c')
|
||||
self.write_file(c_file, 'void PyInit_foo(void) {}\n')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue