1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-18 08:23:51 +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

@@ -204,9 +204,9 @@ class OUCmdTestCase(SambaToolCmdTest):
self.assertIn('Moved ou "%s"' % full_ou_dn, out)
found = self._find_ou(ou["name"])
self.assertNotEquals(found.get("dn"), olddn,
"Moved ou '%s' still exists with the same dn" %
ou["name"])
self.assertNotEqual(found.get("dn"), olddn,
"Moved ou '%s' still exists with the same dn" %
ou["name"])
newexpecteddn = ldb.Dn(self.samdb,
"OU=%s,OU=%s,%s" %
(ou["name"], parentou["name"],