[Lldb-commits] [lldb] 02d152b - [lldb] Make some asserts in TestFixIts more expressive
Raphael Isemann via lldb-commits
lldb-commits at lists.llvm.org
Fri Apr 10 10:16:58 PDT 2020
Author: Raphael Isemann
Date: 2020-04-10T19:16:33+02:00
New Revision: 02d152bb1b63e1f5ebdf502a8b8c8c99103a5e75
URL: https://github.com/llvm/llvm-project/commit/02d152bb1b63e1f5ebdf502a8b8c8c99103a5e75
DIFF: https://github.com/llvm/llvm-project/commit/02d152bb1b63e1f5ebdf502a8b8c8c99103a5e75.diff
LOG: [lldb] Make some asserts in TestFixIts more expressive
Added:
Modified:
lldb/test/API/commands/expression/fixits/TestFixIts.py
Removed:
################################################################################
diff --git a/lldb/test/API/commands/expression/fixits/TestFixIts.py b/lldb/test/API/commands/expression/fixits/TestFixIts.py
index 4f1d974c753b..9ce5415b732e 100644
--- a/lldb/test/API/commands/expression/fixits/TestFixIts.py
+++ b/lldb/test/API/commands/expression/fixits/TestFixIts.py
@@ -20,8 +20,8 @@ def test_with_dummy_target(self):
ret_val = lldb.SBCommandReturnObject()
result = self.dbg.GetCommandInterpreter().HandleCommand("expression ((1 << 16) - 1))", ret_val)
- self.assertEqual(result, lldb.eReturnStatusSuccessFinishResult, "The expression was successful.")
- self.assertTrue("Fix-it applied" in ret_val.GetError(), "Found the applied FixIt.")
+ self.assertEqual(result, lldb.eReturnStatusSuccessFinishResult, ret_val.GetError())
+ self.assertIn("Fix-it applied", ret_val.GetError())
def test_with_target(self):
"""Test calling expressions with errors that can be fixed by the FixIts."""
More information about the lldb-commits
mailing list