From 9e6a1312c1cd04ab37cddd8f3bb9baa7e9a38bc0 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Thu, 23 Apr 2020 14:46:22 +0100 Subject: bpo-40370: Use the same compile and link args as the interpreter used in test_peg_generator (GH-19674) --- Lib/test/test_peg_generator/test_c_parser.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Lib') diff --git a/Lib/test/test_peg_generator/test_c_parser.py b/Lib/test/test_peg_generator/test_c_parser.py index 6682c907cd..ceda6d43d1 100644 --- a/Lib/test/test_peg_generator/test_c_parser.py +++ b/Lib/test/test_peg_generator/test_c_parser.py @@ -8,6 +8,7 @@ import sys from test import test_tools from test.test_peg_generator.ast_dump import ast_dump +from test import support from pathlib import PurePath, Path from typing import Sequence @@ -23,6 +24,9 @@ with test_tools.imports_under_tool('peg_generator'): class TestCParser(unittest.TestCase): def setUp(self): + cmd = support.missing_compiler_executable() + if cmd is not None: + self.skipTest('The %r command is not found' % cmd) self.tmp_path = tempfile.mkdtemp() def tearDown(self): -- cgit v1.2.1