]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python:tests: Fix assertEquals which doesn't exist in Python 3.12
authorAndreas Schneider <asn@samba.org>
Thu, 9 Nov 2023 20:43:54 +0000 (21:43 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 20 Nov 2023 15:37:33 +0000 (15:37 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15513

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/gpo.py

index 33be897405bf48983973c165fde15e89a96556db..f85780685d604c0a67b1f47946a0bf0b51af58f4 100644 (file)
@@ -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)