depot/third_party/nixpkgs/pkgs/development/python-modules/androguard/fix-tests.patch
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

13 lines
590 B
Diff

diff --git a/tests/test_types.py b/tests/test_types.py
index 127dfc20eb..f1c89f0712 100644
--- a/tests/test_types.py
+++ b/tests/test_types.py
@@ -182,7 +182,7 @@
for i in filter(lambda x: 'const' in x.get_name(), method.get_instructions()):
i.show(0)
# ins should only have one literal
- self.assertEquals(len(i.get_literals()), 1)
+ self.assertEqual(len(i.get_literals()), 1)
fmt, value = VALUES[method.full_name].pop(0)
converted = format_value(i.get_literals()[0], i, fmt)