From 516f1ccd30a964e153c697c63e6123ae81cb4d2b Mon Sep 17 00:00:00 2001 From: Silvano Cirujano Cuesta Date: Tue, 30 Jan 2024 09:40:53 +0100 Subject: [PATCH] fix: replace deprecated method 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]: https://github.com/python/cpython/pull/28268 Signed-off-by: Silvano Cirujano Cuesta --- tests/test_utils/test_schemaview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_utils/test_schemaview.py b/tests/test_utils/test_schemaview.py index 576a2f15..53ea6f01 100644 --- a/tests/test_utils/test_schemaview.py +++ b/tests/test_utils/test_schemaview.py @@ -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'])