diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2024-02-16 20:58:50 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-16 20:58:50 -0800 |
commit | 80fcecb13c388ff087a27a4b0e7ca3dd8c98eaa4 (patch) | |
tree | 5dfda69ad17a572f8832ed60746288216d179f9a /lldb/packages/Python/lldbsuite/test | |
parent | 8443ce563bf3500b705ab3507ae586e2a72d31f4 (diff) | |
download | llvm-80fcecb13c388ff087a27a4b0e7ca3dd8c98eaa4.zip llvm-80fcecb13c388ff087a27a4b0e7ca3dd8c98eaa4.tar.gz llvm-80fcecb13c388ff087a27a4b0e7ca3dd8c98eaa4.tar.bz2 |
[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.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lldbutil.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbutil.py b/lldb/packages/Python/lldbsuite/test/lldbutil.py index 506c213..58eb37f 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbutil.py +++ b/lldb/packages/Python/lldbsuite/test/lldbutil.py @@ -696,24 +696,24 @@ def check_breakpoint( test.assertTrue(bkpt.IsValid(), "Breakpoint is not valid.") if expected_locations is not None: - test.assertEquals(expected_locations, bkpt.GetNumLocations()) + test.assertEqual(expected_locations, bkpt.GetNumLocations()) if expected_resolved_count is not None: - test.assertEquals(expected_resolved_count, bkpt.GetNumResolvedLocations()) + test.assertEqual(expected_resolved_count, bkpt.GetNumResolvedLocations()) else: expected_resolved_count = bkpt.GetNumLocations() if location_id is None: - test.assertEquals(expected_resolved_count, bkpt.GetNumResolvedLocations()) + test.assertEqual(expected_resolved_count, bkpt.GetNumResolvedLocations()) if expected_hit_count is not None: - test.assertEquals(expected_hit_count, bkpt.GetHitCount()) + test.assertEqual(expected_hit_count, bkpt.GetHitCount()) if location_id is not None: loc_bkpt = bkpt.FindLocationByID(location_id) test.assertTrue(loc_bkpt.IsValid(), "Breakpoint location is not valid.") - test.assertEquals(loc_bkpt.IsResolved(), expected_location_resolved) + test.assertEqual(loc_bkpt.IsResolved(), expected_location_resolved) if expected_location_hit_count is not None: - test.assertEquals(expected_location_hit_count, loc_bkpt.GetHitCount()) + test.assertEqual(expected_location_hit_count, loc_bkpt.GetHitCount()) # ================================================== |