From: Andreas Schneider Date: Thu, 9 Nov 2023 20:43:54 +0000 (+0100) Subject: python:tests: Fix assertEquals which doesn't exist in Python 3.12 X-Git-Tag: talloc-2.4.2~622 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=362b0d69b16c5bbcd0ff7dd7ba12e1ac037a6b3d;p=thirdparty%2Fsamba.git python:tests: Fix assertEquals which doesn't exist in Python 3.12 BUG: https://bugzilla.samba.org/show_bug.cgi?id=15513 Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/gpo.py b/python/samba/tests/gpo.py index 33be897405b..f85780685d6 100644 --- a/python/samba/tests/gpo.py +++ b/python/samba/tests/gpo.py @@ -7897,7 +7897,7 @@ class GPOTests(tests.TestCase): # Check that a call to gpupdate --rsop also succeeds ret = rsop(self.lp) - self.assertEquals(ret, 0, 'gpupdate --rsop failed!') + self.assertEqual(ret, 0, 'gpupdate --rsop failed!') # Unstage the Drives.xml unstage_file(xml_path)