Use assertEqual instead of assertEquals for Python 3.11 compatibility. (#374)
authorKarthikeyan Singaravelan <tir.karthi@gmail.com>
Sat, 16 Oct 2021 13:18:32 +0000 (18:48 +0530)
committerGitHub <noreply@github.com>
Sat, 16 Oct 2021 13:18:32 +0000 (06:18 -0700)
test/test_arm_call_reloc.py
test/test_die_size.py

index 354c3a72138ee9041c204bfca281b0bf7fd7d639..e23f25cfeb28ffdd74d868f371feaba78048dda6 100644 (file)
@@ -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__':
index 7579ce243f3d1b2a7f3ac036b0d6c97983b88dea..20fcab8ef8fb3231fb38c0fcc354f28a0537564e 100644 (file)
@@ -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()