summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2018-11-19 18:38:46 +0000
committerNoel Power <npower@samba.org>2018-12-10 10:38:23 +0100
commit74aabacc34916452eadec1ca5e911e5afdb82d50 (patch)
tree32a4e1a0944afba78caf220fa5bae260e8faf75f /source4
parent397ab3afbd107e3e5a33b87d2b1221221d21b7d5 (diff)
downloadsamba-74aabacc34916452eadec1ca5e911e5afdb82d50.tar.gz
s4/dsdb/tests/python: PY3 port samba4.ldap.sites
Fix comparison of ldb.bytes with string Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/dsdb/tests/python/sites.py2
1 files changed, 1 insertions, 1 deletions
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,