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/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py | |
| 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/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py')
| -rw-r--r-- | lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py b/lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py index ae78c24531fe..d1a387527af5 100644 --- a/lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py +++ b/lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py @@ -30,8 +30,8 @@ class PluginPythonOSPlugin(TestBase): registers = frame.GetRegisters().GetValueAtIndex(0) reg_value = thread.GetThreadID() + 1 for reg in registers: - self.assertTrue( - reg.GetValueAsUnsigned() == reg_value, + self.assertEqual( + reg.GetValueAsUnsigned(), reg_value, "Verify the registers contains the correct value") reg_value = reg_value + 1 @@ -171,11 +171,11 @@ class PluginPythonOSPlugin(TestBase): "Make sure we get a frame from thread 0x111111111") line_entry = frame.GetLineEntry() - self.assertTrue( - line_entry.GetFileSpec().GetFilename() == 'main.c', + self.assertEqual( + line_entry.GetFileSpec().GetFilename(), 'main.c', "Make sure we stopped on line 5 in main.c") - self.assertTrue( - line_entry.GetLine() == 5, + self.assertEqual( + line_entry.GetLine(), 5, "Make sure we stopped on line 5 in main.c") # Now single step thread 0x111111111 and make sure it does what we need @@ -188,8 +188,8 @@ class PluginPythonOSPlugin(TestBase): "Make sure we get a frame from thread 0x111111111") line_entry = frame.GetLineEntry() - self.assertTrue( - line_entry.GetFileSpec().GetFilename() == 'main.c', + self.assertEqual( + line_entry.GetFileSpec().GetFilename(), 'main.c', "Make sure we stepped from line 5 to line 6 in main.c") self.assertEquals(line_entry.GetLine(), 6, "Make sure we stepped from line 5 to line 6 in main.c") |
