diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py index 76b6fe7d7f637..76f3fcd9b3e9e 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbtest.py +++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py @@ -292,7 +292,7 @@ def __init__( self.children = children self.dereference = dereference - def check_value(self, test_base, val, error_msg=None): + def check_value(self, test_base, val, error_msg=""): """ Checks that the given value matches the currently set properties of this ValueCheck. If a match failed, the given TestBase will @@ -335,7 +335,7 @@ def check_value(self, test_base, val, error_msg=None): if self.dereference is not None: self.dereference.check_value(test_base, val.Dereference(), error_msg) - def check_value_children(self, test_base, val, error_msg=None): + def check_value_children(self, test_base, val, error_msg=""): """ Checks that the children of a SBValue match a certain structure and have certain properties. @@ -2923,7 +2923,7 @@ def expect_expr( summary=result_summary, children=result_children, ) - value_check.check_value(self, eval_result, str(eval_result)) + value_check.check_value(self, eval_result) return eval_result def expect_var_path( @@ -2950,7 +2950,7 @@ def expect_var_path( value_check = ValueCheck( type=type, value=value, summary=summary, children=children ) - value_check.check_value(self, eval_result, str(eval_result)) + value_check.check_value(self, eval_result) return eval_result """Assert that an lldb.SBError is in the "success" state."""