Skip to content

Commit

Permalink
fix: replace deprecated method
Browse files Browse the repository at this point in the history
Unittest method "assertEquals" is deprecated since Python 3.1, but was
still present in the code.

The deprecated method was removed with bpo-45162 [1] and merged on 3.11.

[1]: python/cpython#28268

Signed-off-by: Silvano Cirujano Cuesta <[email protected]>
  • Loading branch information
Silvanoc committed Feb 13, 2024
1 parent c6943e4 commit ad09d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_utils/test_schemaview.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def test_schemaview_enums(self):
if pv == "ANGRY_LION":
self.assertEqual(view.permissible_value_parent(pv, e.name), ['LION'])
self.assertEqual(view.permissible_value_ancestors(pv, e.name), ['ANGRY_LION', 'LION', 'CAT'])
self.assertEquals(["ANGRY_LION"], view.permissible_value_descendants(pv, e.name))
self.assertEqual(["ANGRY_LION"], view.permissible_value_descendants(pv, e.name))
for cn, c in view.all_classes().items():
if c.name == "Adult":
self.assertEqual(view.class_ancestors(c.name), ['Adult', 'Person', 'HasAliases', 'Thing'])
Expand Down

0 comments on commit ad09d00

Please sign in to comment.