[Lldb-commits] [lldb] 3026f75 - [lldb][NFC] Make assert in TestStaticVariables more expressive
Raphael Isemann via lldb-commits
lldb-commits at lists.llvm.org
Thu May 6 07:00:42 PDT 2021
Author: Raphael Isemann
Date: 2021-05-06T16:00:24+02:00
New Revision: 3026f75ed0f520f9be7ac354406687a549155ded
URL: https://github.com/llvm/llvm-project/commit/3026f75ed0f520f9be7ac354406687a549155ded
DIFF: https://github.com/llvm/llvm-project/commit/3026f75ed0f520f9be7ac354406687a549155ded.diff
LOG: [lldb][NFC] Make assert in TestStaticVariables more expressive
Added:
Modified:
lldb/test/API/lang/cpp/class_static/TestStaticVariables.py
Removed:
################################################################################
diff --git a/lldb/test/API/lang/cpp/class_static/TestStaticVariables.py b/lldb/test/API/lang/cpp/class_static/TestStaticVariables.py
index 3a065452ab742..d5e2c8fdb2486 100644
--- a/lldb/test/API/lang/cpp/class_static/TestStaticVariables.py
+++ b/lldb/test/API/lang/cpp/class_static/TestStaticVariables.py
@@ -151,8 +151,8 @@ def test_with_python_api(self):
self.DebugSBValue(child1)
child1_x = child1.GetChildAtIndex(0)
self.DebugSBValue(child1_x)
- self.assertTrue(child1_x.GetTypeName() == 'int' and
- child1_x.GetValue() == '11')
+ self.assertEqual(child1_x.GetTypeName(), 'int')
+ self.assertEqual(child1_x.GetValue(), '11')
# SBFrame.FindValue() should also work.
val = frame.FindValue("A::g_points", lldb.eValueTypeVariableGlobal)
More information about the lldb-commits
mailing list