From 0ed758b26041ef4ec57e8511d289fb0b84468775 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Tue, 2 Feb 2021 14:46:37 -0800 Subject: [lldb] Convert more assertTrue to assertEqual (NFC) Follow up to D95813, this converts multiline assertTrue to assertEqual. Differential Revision: https://reviews.llvm.org/D95899 --- lldb/test/API/python_api/thread/TestThreadAPI.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lldb/test/API/python_api/thread/TestThreadAPI.py') 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): -- cgit v1.2.3