From: Karthikeyan Singaravelan Date: Sat, 16 Oct 2021 13:18:32 +0000 (+0530) Subject: Use assertEqual instead of assertEquals for Python 3.11 compatibility. (#374) X-Git-Tag: v0.28~12 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4e888804c57cdfb0f04b9e5171f8ba5b36165983;p=pyelftools.git Use assertEqual instead of assertEquals for Python 3.11 compatibility. (#374) --- 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()