properties=('complete', 'connected'))
if errors:
DEBUG('spanning tree edge set %s FAILED' % edgeType)
- for p, e in errors:
+ for p, e, doc in errors:
DEBUG("%18s: %s" % (p, e))
raise KCCError("spanning tree failed")
try:
f(edges, vertices, edge_vertices)
except GraphError as e:
- errors.append((p, e))
+ errors.append((p, e, f.__doc__))
return errors
if errors:
title = '%s %s' % (basename, label or '')
debug(("%s%s%s FAILED:" % (MAGENTA, title, RED)))
- for p, e in errors:
+ for p, e, doc in errors:
debug(" %18s: %s%s%s" % (p, DARK_YELLOW, e, RED))
if fatal:
raise GraphError("The '%s' graph lacks the following "
"properties:\n%s" %
- (title, '\n'.join('%s: %s' % x
- for x in errors)))
+ (title, '\n'.join('%s: %s' % (p, e)
+ for p, e, doc in errors)))
def list_verify_tests():