[Lldb-commits] [lldb] [lldb][test] Modernize asserts (PR #82503)

Jordan Rupprecht via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 21 11:00:44 PST 2024


================
@@ -456,8 +457,9 @@ def queues_with_libBacktraceRecording(self):
             "doing_the_work_2",
             "queue 2's pending item #0 should be doing_the_work_2",
         )
-        self.assertTrue(
-            queue_performer_2.GetPendingItemAtIndex(9999).IsValid() == False,
+        self.assertEqual(
+            queue_performer_2.GetPendingItemAtIndex(9999).IsValid(),
----------------
rupprecht wrote:

Good point -- I can check for this kind of case as a followup.

https://github.com/llvm/llvm-project/pull/82503


More information about the lldb-commits mailing list