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 14
14
_TOOLS_JIT_TEST_TEST_EXECUTOR_CASES_C_H = _TOOLS_JIT_TEST / "test_executor_cases.c.h"
15
15
_TOOLS_JIT_BUILD_PY = _TOOLS_JIT / "build.py"
16
16
17
+ # Skip this test if either the JIT build scripts or the needed LLVM utilities
18
+ # are missing:
17
19
test .test_tools .skip_if_missing ("jit" )
18
20
with test .test_tools .imports_under_tool ("jit" ):
19
21
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." )
20
25
21
26
@test .support .cpython_only
22
27
@unittest .skipIf (test .support .Py_DEBUG , "Debug stencils aren't tested." )
@@ -60,8 +65,6 @@ def _check_jit_stencils(
60
65
raise
61
66
62
67
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." )
65
68
self .maxDiff = None
66
69
found = False
67
70
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