s4/torture/drs: ndr_upack needs bytes in py3 (samba4.drs.repl_move)
authorNoel Power <noel.power@suse.com>
Fri, 15 Jun 2018 09:18:30 +0000 (10:18 +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>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/torture/drs/python/repl_move.py

index c5e1de0d9a2f5d83ced9c5b5adcd7cf352392ecf..b53b0c0b1c559945d87cc1c408756244eb8843ec 100644 (file)
@@ -107,7 +107,7 @@ class DrsMoveObjectTestCase(drs_base.DrsBaseTestCase):
         return "DrsMoveU_" + time.strftime("%s", time.gmtime())
 
     def _check_metadata(self, user_dn, sam_ldb, drs, metadata, expected):
-        repl = ndr_unpack(drsblobs.replPropertyMetaDataBlob, str(metadata[0]))
+        repl = ndr_unpack(drsblobs.replPropertyMetaDataBlob, metadata[0])
 
         self.assertEqual(len(repl.ctr.array), len(expected))