From 80fcecb13c388ff087a27a4b0e7ca3dd8c98eaa4 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Fri, 16 Feb 2024 20:58:50 -0800 Subject: [lldb] Replace assertEquals with assertEqual (NFC) (#82073) assertEquals is a deprecated alias for assertEqual and has been removed in Python 3.12. This wasn't an issue previously because we used a vendored version of the unittest module. Now that we use the built-in version this gets updated together with the Python version used to run the test suite. --- lldb/test/API/python_api/debugger/TestDebuggerAPI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/test/API/python_api/debugger/TestDebuggerAPI.py') diff --git a/lldb/test/API/python_api/debugger/TestDebuggerAPI.py b/lldb/test/API/python_api/debugger/TestDebuggerAPI.py index 0f440bd451dd..522de2466012 100644 --- a/lldb/test/API/python_api/debugger/TestDebuggerAPI.py +++ b/lldb/test/API/python_api/debugger/TestDebuggerAPI.py @@ -32,7 +32,7 @@ class DebuggerAPITestCase(TestBase): self.dbg.SetCurrentPlatformSDKRoot(None) fresh_dbg = lldb.SBDebugger() - self.assertEquals(len(fresh_dbg), 0) + self.assertEqual(len(fresh_dbg), 0) def test_debugger_delete_invalid_target(self): """SBDebugger.DeleteTarget() should not crash LLDB given and invalid target.""" -- cgit v1.2.3