]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4/dsdb/tests/python: PY3 port for samba4.ldap.linked_attributes
authorNoel Power <noel.power@suse.com>
Tue, 20 Nov 2018 14:05:58 +0000 (14:05 +0000)
committerNoel Power <npower@samba.org>
Mon, 10 Dec 2018 09:38:23 +0000 (10:38 +0100)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/tests/python/linked_attributes.py

index ee96278bfe6dd466698e51a166e6890578b18e1a..7e94cd937266d3f40fefd3f6fbcf87dd37fb9726 100644 (file)
@@ -138,7 +138,7 @@ class LATests(samba.tests.TestCase):
             return
 
         try:
-            results = list([x[attr] for x in res][0])
+            results = [str(x) for x in res[0][attr]]
         except KeyError:
             self.fail("missing attr '%s' on %s" % (attr, obj))