summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_peg_generator
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2020-04-23 13:46:22 (GMT)
committerGitHub <noreply@github.com>2020-04-23 13:46:22 (GMT)
commit9e6a1312c1cd04ab37cddd8f3bb9baa7e9a38bc0 (patch)
treeeccfa1521f72ee0f6a8e749f680c595ebbb2e128 /Lib/test/test_peg_generator
parent1221135289306333d11db25ab20cbbd21ceec630 (diff)
downloadcpython-9e6a1312c1cd04ab37cddd8f3bb9baa7e9a38bc0.zip
cpython-9e6a1312c1cd04ab37cddd8f3bb9baa7e9a38bc0.tar.gz
cpython-9e6a1312c1cd04ab37cddd8f3bb9baa7e9a38bc0.tar.bz2
bpo-40370: Use the same compile and link args as the interpreter used in test_peg_generator (GH-19674)
Diffstat (limited to 'Lib/test/test_peg_generator')
-rw-r--r--Lib/test/test_peg_generator/test_c_parser.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_peg_generator/test_c_parser.py b/Lib/test/test_peg_generator/test_c_parser.py
index 6682c90..ceda6d4 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):