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:
committed by
Andrew Bartlett
parent
a15208f60b
commit
41aa379abb
@@ -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" %
|
||||
|
||||
Reference in New Issue
Block a user