From: Noel Power Date: Tue, 20 Nov 2018 14:05:58 +0000 (+0000) Subject: s4/dsdb/tests/python: PY3 port for samba4.ldap.linked_attributes X-Git-Tag: tdb-1.3.17~428 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc8a4eeb530ba9893acdaf272e1bd4cd018bdb64;p=thirdparty%2Fsamba.git s4/dsdb/tests/python: PY3 port for samba4.ldap.linked_attributes Signed-off-by: Noel Power Reviewed-by: Andrew Bartlett --- diff --git a/source4/dsdb/tests/python/linked_attributes.py b/source4/dsdb/tests/python/linked_attributes.py index ee96278bfe6..7e94cd93726 100644 --- a/source4/dsdb/tests/python/linked_attributes.py +++ b/source4/dsdb/tests/python/linked_attributes.py @@ -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))