-
Notifications
You must be signed in to change notification settings - Fork 20
Conversation
raise exceptions[0][1][1] | ||
message = "{}\nFollowed with exceptions in other steps:\n".format(str(exceptions[0][1][1])) | ||
message += "\n".join(["{}: {}".format(h[0], h[1][1]) for h in exceptions[1:]]) | ||
raise exceptions[0][1][0](message).with_traceback(exceptions[0][1][2]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is exceptions a three demensions array? or one demension but with dictionary type element ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refer to Line 66:
output.push(' exceptions.append((func.__name__, sys.exc_info()))');
The exceptions is an array of (step_name, exception_info), where step_name is a string, and exception_info is a 3 elements tuple:
exception_info -> (exception_type, exception_instance, stack_info)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay. Is exception_instance a string type?
message = "{}\nFollowed with exceptions in other steps:\n".format(str(exceptions[0][1][1]))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it should be some subclass of BaseException
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then are you sure this line work
message = "{}\nFollowed with exceptions in other steps:\n".format(str(exceptions[0][1][1]))
fix issue #328: clear internal resources even when test failed