bpo-40370: Use the same compile and link args as the interpreter used in test_peg_generator (GH-19674)

This commit is contained in:
Pablo Galindo 2020-04-23 14:46:22 +01:00 committed by GitHub
parent 1221135289
commit 9e6a1312c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 3 deletions

View file

@ -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):