From 74aabacc34916452eadec1ca5e911e5afdb82d50 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Mon, 19 Nov 2018 18:38:46 +0000 Subject: [PATCH] s4/dsdb/tests/python: PY3 port samba4.ldap.sites Fix comparison of ldb.bytes with string Signed-off-by: Noel Power Reviewed-by: Andrew Bartlett --- source4/dsdb/tests/python/sites.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/dsdb/tests/python/sites.py b/source4/dsdb/tests/python/sites.py index 867bfcc7ab8..e7d93314d21 100755 --- a/source4/dsdb/tests/python/sites.py +++ b/source4/dsdb/tests/python/sites.py @@ -165,7 +165,7 @@ class SimpleSubnetTests(SitesBaseTests): sites = ret[0]['siteObject'] self.assertEqual(len(sites), 1) - self.assertEqual(sites[0], + self.assertEqual(str(sites[0]), 'CN=testsite2,CN=Sites,%s' % self.ldb.get_config_basedn()) self.assertRaises(subnets.SubnetAlreadyExists, -- 2.11.4.GIT