python:tests: Store keys as bytes rather than as tuples
[samba.git] / python / samba / tests / dckeytab.py
index a382e8b735693710ffe62279c7055f9d77df7d0c..a4ae38a8c0bc786cb69f45381966c40140f02388 100644 (file)
@@ -55,7 +55,7 @@ class DCKeytabTests(TestCaseInTempDir):
             principal = '/'.join(entry.principal.components) + f"@{entry.principal.realm}"
             enctype = entry.enctype
             kvno = entry.key_version
-            key = tuple(entry.key.data)
+            key = bytes(entry.key.data)
             return (principal, enctype, kvno, key)
 
         keytab = ndr_unpack(krb5ccache.KEYTAB, keytab_bytes)