diff --git a/python/samba/tests/dckeytab.py b/python/samba/tests/dckeytab.py index edb8a079da0..9dee64e0cea 100644 --- a/python/samba/tests/dckeytab.py +++ b/python/samba/tests/dckeytab.py @@ -174,7 +174,8 @@ class DCKeytabTests(TestCaseInTempDir): ).communicate()[0] self.maxDiff = None # No maximum length of diffs. - self.assertMultiLineEqual(str(keytab_orig_content), str(keytab_content)) + self.assertMultiLineEqual(keytab_orig_content.decode(), + keytab_content.decode()) # Parse the first entry in the keytab with open(self.ktfile, 'rb') as bytes_kt: