s4/dsdb/tests/python: PY3 port samba4.tokengroups.krb5
authorNoel Power <noel.power@suse.com>
Mon, 19 Nov 2018 14:04:39 +0000 (14:04 +0000)
committerNoel Power <npower@samba.org>
Mon, 10 Dec 2018 09:38:23 +0000 (10:38 +0100)
gensec.Security.update takes bytes as param not string with py3

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/tests/python/token_group.py

index 8df123f173b085e1200257512d1bf78a49d1cbca..af2f4f4e79f46e7bcf58cd740f59d0e722b61a6e 100755 (executable)
@@ -149,7 +149,7 @@ class StaticTokenTest(samba.tests.TestCase):
 
         client_finished = False
         server_finished = False
-        server_to_client = ""
+        server_to_client = b""
 
         # Run the actual call loop.
         while client_finished == False and server_finished == False:
@@ -382,7 +382,7 @@ class DynamicTokenTest(samba.tests.TestCase):
 
         client_finished = False
         server_finished = False
-        server_to_client = ""
+        server_to_client = b""
 
         # Run the actual call loop.
         while client_finished == False and server_finished == False: