llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-lldb Author: Carlo Cabrera (carlocab) <details> <summary>Changes</summary> 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 --- Full diff: https://github.com/llvm/llvm-project/pull/120901.diff 1 Files Affected: - (modified) lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py (+1-1) ``````````diff 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) `````````` </details> https://github.com/llvm/llvm-project/pull/120901 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits