pyelftools/pyelftools-py311.patch
2021-11-02 15:19:43 +01:00

25 lines
1.2 KiB
Diff

diff -up pyelftools-0.27/test/test_arm_call_reloc.py.py311 pyelftools-0.27/test/test_arm_call_reloc.py
--- pyelftools-0.27/test/test_arm_call_reloc.py.py311 2020-10-27 14:42:31.000000000 +0100
+++ pyelftools-0.27/test/test_arm_call_reloc.py 2021-11-02 15:12:12.843113102 +0100
@@ -38,7 +38,7 @@ class TestARMRElocation(unittest.TestCas
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 -up pyelftools-0.27/test/test_die_size.py.py311 pyelftools-0.27/test/test_die_size.py
--- pyelftools-0.27/test/test_die_size.py.py311 2020-10-27 14:42:31.000000000 +0100
+++ pyelftools-0.27/test/test_die_size.py 2021-11-02 15:12:27.929234127 +0100
@@ -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()