This commit is contained in:
rocky
2024-07-18 10:40:06 -04:00
parent 5cf1315805
commit ea15d26ce0

View File

@@ -1903,9 +1903,13 @@ class FragmentsWalker(pysource.SourceWalker, object):
node[index].kind,
)
else:
assert node[tup[0]] in tup[1], (
f"at {node.kind}[{tup[0]}], expected to be in '{tup[1]}' "
f"node; got '{node[tup[0]].kind}'"
assert (
node[tup[0]] in tup[1]
), "at %s[%d], expected to be in '%s' node; got '%s'" % (
node.kind,
tup[0],
tup[1],
node[tup[0].kind],
)
else: