Author: Carlo Cabrera Date: 2024-12-23T15:36:57+08:00 New Revision: aca7a70cdada8aa13c7f4e24c431bfe47218a3fa
URL: https://github.com/llvm/llvm-project/commit/aca7a70cdada8aa13c7f4e24c431bfe47218a3fa DIFF: https://github.com/llvm/llvm-project/commit/aca7a70cdada8aa13c7f4e24c431bfe47218a3fa.diff LOG: [lldb] Fix bad method call in `TestExprDiagnostics.py` (#120901) Fixes Traceback (most recent call last): File "/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 1770, in test_method return attrvalue(self) ^^^^^^^^^^^^^^^ File "/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py", line 255, in test_command_expr_sbdata self.assertEquals(error.GetType(), lldb.eErrorTypeExpression) ^^^^^^^^^^^^^^^^^ AttributeError: 'ExprDiagnosticsTestCase' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'? `assertEqual` is a method inherited from `unittest.TestCase`. See #120784 and https://github.com/llvm/llvm-project/pull/120784#issuecomment-2557871308 Added: Modified: lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py Removed: ################################################################################ diff --git a/lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py b/lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py index 59e759352ce063..b476a807c6dc0e 100644 --- a/lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py +++ b/lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py @@ -252,7 +252,7 @@ def check_error(diags): value = frame.EvaluateExpression("a+b") error = value.GetError() self.assertTrue(error.Fail()) - self.assertEquals(error.GetType(), lldb.eErrorTypeExpression) + self.assertEqual(error.GetType(), lldb.eErrorTypeExpression) data = error.GetErrorData() version = data.GetValueForKey("version") self.assertEqual(version.GetIntegerValue(), 1) _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits