diff options
| author | Dave Lee <davelee.com@gmail.com> | 2022-11-11 16:19:03 -0800 |
|---|---|---|
| committer | Dave Lee <davelee.com@gmail.com> | 2022-11-11 17:03:02 -0800 |
| commit | 1fb5c7a2f17f10e768160fe23d4a04537c7224c1 (patch) | |
| tree | c8092fe49b665df0014cc8b27835f7362151c578 /lldb/test/API/functionalities/recursion/TestValueObjectRecursion.py | |
| parent | a58541f14d2d3e7d65f2e9b341bf2321b312c615 (diff) | |
[lldb] Rewrite to assertEqual/assertNotEqual (NFC)
Using the more specific assert* methods results in more useful error message.
Diffstat (limited to 'lldb/test/API/functionalities/recursion/TestValueObjectRecursion.py')
| -rw-r--r-- | lldb/test/API/functionalities/recursion/TestValueObjectRecursion.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/test/API/functionalities/recursion/TestValueObjectRecursion.py b/lldb/test/API/functionalities/recursion/TestValueObjectRecursion.py index 4d83bf322ccc..7e8c7cb8952f 100644 --- a/lldb/test/API/functionalities/recursion/TestValueObjectRecursion.py +++ b/lldb/test/API/functionalities/recursion/TestValueObjectRecursion.py @@ -56,9 +56,9 @@ class ValueObjectRecursionTestCase(TestBase): self.assertTrue( child.GetChildAtIndex(0).IsValid(), "the deep ValueObject has no value") - self.assertTrue( - child.GetChildAtIndex(0).GetValueAsUnsigned() != 0, + self.assertNotEqual( + child.GetChildAtIndex(0).GetValueAsUnsigned(), 0, "the deep ValueObject has a zero value") - self.assertTrue( - child.GetChildAtIndex(1).GetValueAsUnsigned() != 0, + self.assertNotEqual( + child.GetChildAtIndex(1).GetValueAsUnsigned(), 0, "the deep ValueObject has no next") |
