提交 ef5d1f05 authored 作者: Frederic Bastien's avatar Frederic Bastien

Catch only exception.

上级 f0ac9811
...@@ -196,7 +196,7 @@ def makeTester(name, op, expected, checks = {}, good = {}, bad_build = {}, ...@@ -196,7 +196,7 @@ def makeTester(name, op, expected, checks = {}, good = {}, bad_build = {},
try: try:
variables = f(*inputs) variables = f(*inputs)
except: except Exception:
type, exc_value, traceback = sys.exc_info() type, exc_value, traceback = sys.exc_info()
err_msg = "Test %s::%s: Error occurred while calling the Function on the inputs %s" \ err_msg = "Test %s::%s: Error occurred while calling the Function on the inputs %s" \
% (self.op, testname, inputs) % (self.op, testname, inputs)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论