From 05f999ae55cd5b47edc303cf6e5ac2b2ec176754 Mon Sep 17 00:00:00 2001 From: Augustine Manu-Frimpong <150844417+FrimpsManu@users.noreply.github.com> Date: Fri, 9 Oct 2026 01:55:39 -0500 Subject: [PATCH] Use assertEqual instead of assertEquals, removed in Python 3.12 unittest removed the deprecated assertEquals alias in Python 3.12, so this test raises AttributeError there when the loadactionset call reports a problem. assertEqual is its documented replacement. The change was made with PatchAhead, a deterministic migration tool. Its other uses of old names in swat/utils/testing.py are compatibility wrappers (assertEqual falling back to assertEquals on old Pythons) and were deliberately left alone. Signed-off-by: Augustine Manu-Frimpong <150844417+FrimpsManu@users.noreply.github.com> Assisted-by: Claude Code --- swat/tests/cas/test_builtins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swat/tests/cas/test_builtins.py b/swat/tests/cas/test_builtins.py index 51f273ac..fe9b557a 100644 --- a/swat/tests/cas/test_builtins.py +++ b/swat/tests/cas/test_builtins.py @@ -253,7 +253,7 @@ def test_listactions(self): r = self.s.builtins.loadactionset(actionset='neuralNet') if r.severity != 0: self.pp.pprint(r.messages) - self.assertEquals(r.status, None) + self.assertEqual(r.status, None) # List an actionSet that is loaded. out = self.s.builtins.help(actionSet='neuralNet')