diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py index fa93cce73be55..784d6ecd2ddfb 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbtest.py +++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py @@ -2397,7 +2397,7 @@ def expect_expr( eval_result = frame.EvaluateExpression(expr) if error_msg: - self.assertFalse(eval_result.IsValid()) + self.assertFalse(eval_result.IsValid(), "Unexpected success with result: '" + str(eval_result) + "'") self.assertEqual(error_msg, eval_result.GetError().GetCString()) return