From: Raphael Isemann Date: Mon, 29 Jun 2020 13:48:32 +0000 (+0200) Subject: [lldb] Modernize TestOperatorOverload.py asserts X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=621f84567920bf5a8d79789f01a622115ec8252d;p=platform%2Fupstream%2Fllvm.git [lldb] Modernize TestOperatorOverload.py asserts --- diff --git a/lldb/test/API/lang/cpp/operator-overload/TestOperatorOverload.py b/lldb/test/API/lang/cpp/operator-overload/TestOperatorOverload.py index f541a66..c361a39 100644 --- a/lldb/test/API/lang/cpp/operator-overload/TestOperatorOverload.py +++ b/lldb/test/API/lang/cpp/operator-overload/TestOperatorOverload.py @@ -13,10 +13,6 @@ class TestOperatorOverload(TestBase): "break here", lldb.SBFileSpec("b.cpp")) frame = thread.GetSelectedFrame() value = frame.EvaluateExpression("x == nil") - self.assertTrue(str(value.GetError()) - .find("comparison between NULL and non-pointer ('Tinky' and NULL)") - != -1) - self.assertTrue(str(value.GetError()) - .find("invalid operands to binary expression ('Tinky' and") - != -1) self.assertFalse(value.GetError().Success()) + self.assertIn("comparison between NULL and non-pointer ('Tinky' and NULL)", str(value.GetError())) + self.assertIn("invalid operands to binary expression ('Tinky' and", str(value.GetError()))