Skip to content

Commit aca7a70

Browse files
authored
[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 #120784 (comment)
1 parent 4b35dd5 commit aca7a70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def check_error(diags):
252252
value = frame.EvaluateExpression("a+b")
253253
error = value.GetError()
254254
self.assertTrue(error.Fail())
255-
self.assertEquals(error.GetType(), lldb.eErrorTypeExpression)
255+
self.assertEqual(error.GetType(), lldb.eErrorTypeExpression)
256256
data = error.GetErrorData()
257257
version = data.GetValueForKey("version")
258258
self.assertEqual(version.GetIntegerValue(), 1)

0 commit comments

Comments
 (0)