2.4 tolerance

This commit is contained in:
rocky
2024-07-18 18:56:27 -04:00
parent dc765d7bbb
commit bdc026d3c1

View File

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