提交 717fd402 authored 作者: Brandon T. Willard's avatar Brandon T. Willard

Refactor test message construction in get_debug_values

上级 5194e7e5
...@@ -1093,10 +1093,10 @@ def get_debug_values(*args): ...@@ -1093,10 +1093,10 @@ def get_debug_values(*args):
except AttributeError: except AttributeError:
if hasattr(arg, "name") and arg.name is not None: if hasattr(arg, "name") and arg.name is not None:
missing_test_message( missing_test_message(
"Argument " + str(i) + "('" + arg.name + "') has no test value" "Argument {} ('{}') has no test value".format(i, arg.name)
) )
else: else:
missing_test_message("Argument " + str(i) + " has no test value") missing_test_message("Argument {} has no test value".format(i))
return [] return []
if len(rval) == 1: if len(rval) == 1:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论