diff options
| author | Dave Lee <davelee.com@gmail.com> | 2021-02-02 14:46:37 -0800 |
|---|---|---|
| committer | Dave Lee <davelee.com@gmail.com> | 2021-02-03 21:15:08 -0800 |
| commit | 0ed758b26041ef4ec57e8511d289fb0b84468775 (patch) | |
| tree | 85ec29e88231671b4dc2bd4443706ca470e97273 /lldb/test/API/python_api/watchpoint | |
| parent | 9511fa2ddab73c7c93c97df514a00cee5e12e1b2 (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/watchpoint')
| -rw-r--r-- | lldb/test/API/python_api/watchpoint/TestSetWatchpoint.py | 4 | ||||
| -rw-r--r-- | lldb/test/API/python_api/watchpoint/TestWatchpointIter.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lldb/test/API/python_api/watchpoint/TestSetWatchpoint.py b/lldb/test/API/python_api/watchpoint/TestSetWatchpoint.py index 9ac5d834d502..260956b1f7c8 100644 --- a/lldb/test/API/python_api/watchpoint/TestSetWatchpoint.py +++ b/lldb/test/API/python_api/watchpoint/TestSetWatchpoint.py @@ -98,8 +98,8 @@ class SetWatchpointAPITestCase(TestBase): process.Continue() # At this point, the inferior process should have exited. - self.assertTrue( - process.GetState() == lldb.eStateExited, + self.assertEqual( + process.GetState(), lldb.eStateExited, PROCESS_EXITED) self.dbg.DeleteTarget(target) diff --git a/lldb/test/API/python_api/watchpoint/TestWatchpointIter.py b/lldb/test/API/python_api/watchpoint/TestWatchpointIter.py index 1a001f9932c3..17ab024e1963 100644 --- a/lldb/test/API/python_api/watchpoint/TestWatchpointIter.py +++ b/lldb/test/API/python_api/watchpoint/TestWatchpointIter.py @@ -113,8 +113,8 @@ class WatchpointIteratorTestCase(TestBase): process.Continue() # At this point, the inferior process should have exited. - self.assertTrue( - process.GetState() == lldb.eStateExited, + self.assertEqual( + process.GetState(), lldb.eStateExited, PROCESS_EXITED) # Verify some vital statistics and exercise the iterator API. |
