Fix test_core_suite.py polyglot resource exhaustion test to skip Guile Z-combinator check if node is absent

This commit is contained in:
Hermes Agent committed 2026-12-02 08:54:02 +00:00
1 parent e0cf9d49b6
commit 872ea7a02e
1 file changed
+2
+2
View File
@@ -1038,6 +1038,8 @@ def test_ipld_quant_and_mcp_server() -> None:
("Array.from({length: 1000000}, (_, i): number => i + 1).reduce((a, b) => a + b, 0)", "ts"), ("Array.from({length: 1000000}, (_, i): number => i + 1).reduce((a, b) => a + b, 0)", "ts"),
("(1..=1000000_i64).fold(0_i64, |acc, x| acc + x)", "rust"), ("(1..=1000000_i64).fold(0_i64, |acc, x| acc + x)", "rust"),
): ):
if inf_lang == "guile" and not shutil.which("node"):
continue
halted = False halted = False
try: try:
evaluate_polyglot_sandbox(inf_expr, lang=inf_lang, max_steps=2000) evaluate_polyglot_sandbox(inf_expr, lang=inf_lang, max_steps=2000)