1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-19 12:23:49 +03:00

python: Replace calls to deprecated methods

These aliases are deprecated and have been removed in Python 3.12.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton
2023-01-19 08:37:03 +13:00
committed by Andrew Bartlett
parent a15208f60b
commit 41aa379abb
17 changed files with 145 additions and 145 deletions

View File

@@ -253,9 +253,9 @@ class ComputerCmdTestCase(SambaToolCmdTest):
self.assertIn('Moved computer "%s"' % computer["name"], out)
found = self._find_computer(computer["name"])
self.assertNotEquals(found.get("dn"), olddn,
("Moved computer '%s' still exists with the "
"same dn" % computer["name"]))
self.assertNotEqual(found.get("dn"), olddn,
("Moved computer '%s' still exists with the "
"same dn" % computer["name"]))
computername = computer["name"].rstrip('$')
newexpecteddn = ldb.Dn(self.samdb,
"CN=%s,OU=%s,%s" %