提交 496f6207 编写于 作者: L Lukáš Doktor

avocado.core.tree: Print non-string values in tree_view

Currently the tree_view can't cope with non-string values and crashes.
Let's show the string representation.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 94ce6e64
......@@ -712,7 +712,7 @@ def tree_view(root, verbose=None, use_utf8=None):
else:
val_prefix = ' '
for key, value in values:
out.extend(prefixed_write(val_prefix, val + key + ': ',
out.extend(prefixed_write(val_prefix, "%s%s: " % (val, key),
value))
if node.children:
for child in node.children[:-1]:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册