summaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api/module_section/TestModuleAndSection.py
diff options
context:
space:
mode:
authorDave Lee <davelee.com@gmail.com>2022-11-11 16:19:03 -0800
committerDave Lee <davelee.com@gmail.com>2022-11-11 17:03:02 -0800
commit1fb5c7a2f17f10e768160fe23d4a04537c7224c1 (patch)
treec8092fe49b665df0014cc8b27835f7362151c578 /lldb/test/API/python_api/module_section/TestModuleAndSection.py
parenta58541f14d2d3e7d65f2e9b341bf2321b312c615 (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/module_section/TestModuleAndSection.py')
-rw-r--r--lldb/test/API/python_api/module_section/TestModuleAndSection.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/test/API/python_api/module_section/TestModuleAndSection.py b/lldb/test/API/python_api/module_section/TestModuleAndSection.py
index 493d372408c5..377640faf66d 100644
--- a/lldb/test/API/python_api/module_section/TestModuleAndSection.py
+++ b/lldb/test/API/python_api/module_section/TestModuleAndSection.py
@@ -153,6 +153,5 @@ class ModuleAndSectionAPIsTestCase(TestBase):
for source_name in source_name_list:
list = module.FindCompileUnits(lldb.SBFileSpec(source_name, False))
for sc in list:
- self.assertTrue(
- sc.GetCompileUnit().GetFileSpec().GetFilename() ==
- source_name)
+ self.assertEqual(
+ sc.GetCompileUnit().GetFileSpec().GetFilename(), source_name)