File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1414_TOOLS_JIT_TEST_TEST_EXECUTOR_CASES_C_H = _TOOLS_JIT_TEST / "test_executor_cases.c.h"
1515_TOOLS_JIT_BUILD_PY = _TOOLS_JIT / "build.py"
1616
17+ # Skip this test if either the JIT build scripts or the needed LLVM utilities
18+ # are missing:
1719test .test_tools .skip_if_missing ("jit" )
1820with test .test_tools .imports_under_tool ("jit" ):
1921 import _llvm
22+ for tool in ["clang" , "llvm-objdump" , "llvm-readobj" ]:
23+ if not asyncio .run (_llvm ._find_tool (tool )):
24+ raise unittest .SkipTest (f"{ tool } { _llvm ._LLVM_VERSION } isn't installed." )
2025
2126@test .support .cpython_only
2227@unittest .skipIf (test .support .Py_DEBUG , "Debug stencils aren't tested." )
@@ -60,8 +65,6 @@ def _check_jit_stencils(
6065 raise
6166
6267 def test_jit_stencils (self ):
63- if not asyncio .run (_llvm ._find_tool ("clang" )):
64- self .skipTest (f"LLVM { _llvm ._LLVM_VERSION } isn't installed." )
6568 self .maxDiff = None
6669 found = False
6770 for test_jit_stencils_h in _TOOLS_JIT_TEST .glob ("test_jit_stencils-*.h" ):
You can’t perform that action at this time.
0 commit comments