Skip to content

armgit / laya

Public Imported from GitHub
0

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

test(security): print a list detail instead of raising on the way to one

Aashish4dde02218cde
diff --git a/tests/test_audit_scope.py b/tests/test_audit_scope.py
index 5da7cb33..33f913f6 100644
--- a/tests/test_audit_scope.py
+++ b/tests/test_audit_scope.py
@@ -33,7 +33,9 @@ def check_true(name, cond, detail=""):
if cond:
PASS.append(name)
else:
- FAIL.append("%s%s" % (name, ": " + detail if detail else ""))
+ # %s, not concatenation: several details below are lists of names, and a gate that raises
+ # on the way to reporting a failure leaves the mutant's name unsaid.
+ FAIL.append("%s: %s" % (name, detail))
def read(name):