From: Jo Sutton Date: Wed, 24 Apr 2024 01:34:27 +0000 (+1200) Subject: python:tests: Store keys as bytes rather than as lists of ints X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;=2726c1a1b0c69d618248b607eca2b0845ddda41d python:tests: Store keys as bytes rather than as lists of ints Signed-off-by: Jo Sutton Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Wed Apr 24 06:20:58 UTC 2024 on atb-devel-224 --- diff --git a/python/samba/tests/dckeytab.py b/python/samba/tests/dckeytab.py index ca0dbcf7f2a..31139c0360f 100644 --- a/python/samba/tests/dckeytab.py +++ b/python/samba/tests/dckeytab.py @@ -436,7 +436,7 @@ class DCKeytabTests(TestCaseInTempDir): remote_keys = {} while True: - remote_keys[remote_keytab.entry.enctype] = remote_keytab.entry.key.data + remote_keys[remote_keytab.entry.enctype] = bytes(remote_keytab.entry.key.data) keytab_bytes = remote_keytab.further_entry if not keytab_bytes: break @@ -446,7 +446,7 @@ class DCKeytabTests(TestCaseInTempDir): local_keys = {} while True: - local_keys[local_keytab.entry.enctype] = local_keytab.entry.key.data + local_keys[local_keytab.entry.enctype] = bytes(local_keytab.entry.key.data) keytab_bytes = local_keytab.further_entry if not keytab_bytes: break