Index: lldb/packages/Python/lldbsuite/test/lldbtest.py =================================================================== --- lldb/packages/Python/lldbsuite/test/lldbtest.py +++ lldb/packages/Python/lldbsuite/test/lldbtest.py @@ -2421,8 +2421,7 @@ eval_result = frame.EvaluateExpression(expr, options) if error_msg: - self.assertFalse(eval_result.IsValid(), "Unexpected success with result: '" + str(eval_result) + "'") - self.assertEqual(error_msg, eval_result.GetError().GetCString()) + self.assertTrue(eval_result.GetError().GetCString().find(error_msg) != -1) return if not eval_result.GetError().Success():