Skip to content

Commit 10c815c

Browse files
committed
[lldb][test] Fix duplicate error messages in expect_expr/var_path
The error message field for expect_* methods always prints the value object, so there is no need to specify a custom error message that then just prints the object too. This fixes the duplicate value object printout on test failures.
1 parent da17c1c commit 10c815c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lldb/packages/Python/lldbsuite/test/lldbtest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2923,7 +2923,7 @@ def expect_expr(
29232923
summary=result_summary,
29242924
children=result_children,
29252925
)
2926-
value_check.check_value(self, eval_result, str(eval_result))
2926+
value_check.check_value(self, eval_result)
29272927
return eval_result
29282928

29292929
def expect_var_path(
@@ -2950,7 +2950,7 @@ def expect_var_path(
29502950
value_check = ValueCheck(
29512951
type=type, value=value, summary=summary, children=children
29522952
)
2953-
value_check.check_value(self, eval_result, str(eval_result))
2953+
value_check.check_value(self, eval_result)
29542954
return eval_result
29552955

29562956
"""Assert that an lldb.SBError is in the "success" state."""

0 commit comments

Comments
 (0)