summaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api/thread/TestThreadAPI.py
diff options
context:
space:
mode:
authorDave Lee <davelee.com@gmail.com>2021-02-02 14:46:37 -0800
committerDave Lee <davelee.com@gmail.com>2021-02-03 21:15:08 -0800
commit0ed758b26041ef4ec57e8511d289fb0b84468775 (patch)
tree85ec29e88231671b4dc2bd4443706ca470e97273 /lldb/test/API/python_api/thread/TestThreadAPI.py
parent9511fa2ddab73c7c93c97df514a00cee5e12e1b2 (diff)
[lldb] Convert more assertTrue to assertEqual (NFC)
Follow up to D95813, this converts multiline assertTrue to assertEqual. Differential Revision: https://reviews.llvm.org/D95899
Diffstat (limited to 'lldb/test/API/python_api/thread/TestThreadAPI.py')
-rw-r--r--lldb/test/API/python_api/thread/TestThreadAPI.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/lldb/test/API/python_api/thread/TestThreadAPI.py b/lldb/test/API/python_api/thread/TestThreadAPI.py
index 420510a5c085..a369c70a0fd4 100644
--- a/lldb/test/API/python_api/thread/TestThreadAPI.py
+++ b/lldb/test/API/python_api/thread/TestThreadAPI.py
@@ -99,8 +99,7 @@ class ThreadAPITestCase(TestBase):
proc_of_thread = thread.GetProcess()
self.trace("proc_of_thread:", proc_of_thread)
- self.assertTrue(proc_of_thread.GetProcessID()
- == process.GetProcessID())
+ self.assertEqual(proc_of_thread.GetProcessID(), process.GetProcessID())
def get_stop_description(self):
"""Test Python SBThread.GetStopDescription() API."""
@@ -180,8 +179,8 @@ class ThreadAPITestCase(TestBase):
thread.StepOut()
self.runCmd("thread backtrace")
- self.assertTrue(
- thread.GetFrameAtIndex(0).GetLineEntry().GetLine() == self.step_out_of_malloc,
+ self.assertEqual(
+ thread.GetFrameAtIndex(0).GetLineEntry().GetLine(), self.step_out_of_malloc,
"step out of malloc into function b is successful")
def step_over_3_times(self, exe_name):