s4/torure/drs/python: Fix incorrect use of unicode which doesn't exist in py3
authorNoel Power <noel.power@suse.com>
Fri, 15 Jun 2018 15:26:28 +0000 (16:26 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Jul 2018 23:12:25 +0000 (01:12 +0200)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/torture/drs/python/repl_schema.py

index 89346af724d7e374cc31c0182ccbea82f0ee5689..8c288e42d9254e103dc689e7246613652cb730db 100644 (file)
@@ -65,7 +65,7 @@ class DrsReplSchemaTestCase(drs_base.DrsBaseTestCase):
         req8.destination_dsa_guid = misc.GUID(dest_dsa) if dest_dsa else misc.GUID()
         req8.source_dsa_invocation_id = misc.GUID(invocation_id)
         req8.naming_context = drsuapi.DsReplicaObjectIdentifier()
-        req8.naming_context.dn = unicode(nc_dn_str)
+        req8.naming_context.dn = str(nc_dn_str)
         req8.highwatermark = drsuapi.DsReplicaHighWaterMark()
         req8.highwatermark.tmp_highest_usn = 0
         req8.highwatermark.reserved_usn = 0