[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.
This commit is contained in:
1 parent
8443ce563b
commit
80fcecb13c
111 files changed
+426
-426
No files matched your search
@@ -13,7 +13,7 @@ function _T:TestProcessLaunchSimple()
|
||||
)
|
||||
assertTrue(process:IsValid())
|
||||
local stdout = process:GetSTDOUT(1000)
|
||||
assertEquals(split_lines(stdout), {self.exe, table.unpack(args)})
|
||||
assertEqual(split_lines(stdout), {self.exe, table.unpack(args)})
|
||||
end
|
||||
|
||||
function _T:TestProcessLaunch()
|
||||
@@ -52,7 +52,7 @@ function _T:TestProcessLaunch()
|
||||
local continue = process:Continue()
|
||||
assertTrue(continue:Success())
|
||||
local f = io.open(self.output, 'r')
|
||||
assertEquals(read_file_non_empty_lines(f), {self.exe, table.unpack(args)})
|
||||
assertEqual(read_file_non_empty_lines(f), {self.exe, table.unpack(args)})
|
||||
f:close()
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user