diff options
| author | Dave Lee <davelee.com@gmail.com> | 2022-11-11 16:19:03 -0800 |
|---|---|---|
| committer | Dave Lee <davelee.com@gmail.com> | 2022-11-11 17:03:02 -0800 |
| commit | 1fb5c7a2f17f10e768160fe23d4a04537c7224c1 (patch) | |
| tree | c8092fe49b665df0014cc8b27835f7362151c578 /lldb/test/API/python_api/function_symbol/TestSymbolAPI.py | |
| parent | a58541f14d2d3e7d65f2e9b341bf2321b312c615 (diff) | |
[lldb] Rewrite to assertEqual/assertNotEqual (NFC)
Using the more specific assert* methods results in more useful error message.
Diffstat (limited to 'lldb/test/API/python_api/function_symbol/TestSymbolAPI.py')
| -rw-r--r-- | lldb/test/API/python_api/function_symbol/TestSymbolAPI.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/test/API/python_api/function_symbol/TestSymbolAPI.py b/lldb/test/API/python_api/function_symbol/TestSymbolAPI.py index 5e6a02a33e3e..14cc3ebe870f 100644 --- a/lldb/test/API/python_api/function_symbol/TestSymbolAPI.py +++ b/lldb/test/API/python_api/function_symbol/TestSymbolAPI.py @@ -59,8 +59,8 @@ class SymbolAPITestCase(TestBase): self.assertEqual(symbol_line1.GetType(), lldb.eSymbolTypeCode) addr_line1 = symbol_line1.GetStartAddress() # And a section type of code, too. - self.assertTrue(addr_line1.GetSection().GetSectionType() - == lldb.eSectionTypeCode) + self.assertEqual(addr_line1.GetSection().GetSectionType(), + lldb.eSectionTypeCode) # Continue the inferior, the breakpoint 2 should be hit. process.Continue() @@ -76,11 +76,11 @@ class SymbolAPITestCase(TestBase): self.assertEqual(symbol_line2.GetType(), lldb.eSymbolTypeCode) addr_line2 = symbol_line2.GetStartAddress() # And a section type of code, too. - self.assertTrue(addr_line2.GetSection().GetSectionType() - == lldb.eSectionTypeCode) + self.assertEqual(addr_line2.GetSection().GetSectionType(), + lldb.eSectionTypeCode) # Now verify that both addresses point to the same module. if self.TraceOn(): print("UUID:", addr_line1.GetModule().GetUUIDString()) - self.assertTrue(addr_line1.GetModule().GetUUIDString() - == addr_line2.GetModule().GetUUIDString()) + self.assertEqual(addr_line1.GetModule().GetUUIDString(), + addr_line2.GetModule().GetUUIDString()) |
