From 4e888804c57cdfb0f04b9e5171f8ba5b36165983 Mon Sep 17 00:00:00 2001 From: Karthikeyan Singaravelan Date: Sat, 16 Oct 2021 18:48:32 +0530 Subject: [PATCH] Use assertEqual instead of assertEquals for Python 3.11 compatibility. (#374) --- test/test_arm_call_reloc.py | 2 +- test/test_die_size.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_arm_call_reloc.py b/test/test_arm_call_reloc.py index 354c3a7..e23f25c 100644 --- a/test/test_arm_call_reloc.py +++ b/test/test_arm_call_reloc.py @@ -38,7 +38,7 @@ class TestARMRElocation(unittest.TestCase): elf = ELFFile(f) # Comparison of '.text' section data - self.assertEquals(do_relocation(rel_elf), + self.assertEqual(do_relocation(rel_elf), elf.get_section_by_name('.text').data()) if __name__ == '__main__': diff --git a/test/test_die_size.py b/test/test_die_size.py index 7579ce2..20fcab8 100644 --- a/test/test_die_size.py +++ b/test/test_die_size.py @@ -26,7 +26,7 @@ class TestDieSize(unittest.TestCase): dwarfinfo = elffile.get_dwarf_info() for CU in dwarfinfo.iter_CUs(): for child in CU.get_top_DIE().iter_children(): - self.assertEquals(child.size, 3) + self.assertEqual(child.size, 3) if __name__ == '__main__': unittest.main() -- 2.30.2