[lldb] Modernize TestOperatorOverload.py asserts

This commit is contained in:
Raphael Isemann 2020-06-29 15:48:32 +02:00
parent aa93d84db9
commit 621f845679
1 changed files with 2 additions and 6 deletions

View File

@ -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()))