summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-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 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):