python selftest: enable samba.tests.s3passdb to run with python3
authorNoel Power <noel.power@suse.com>
Thu, 22 Mar 2018 12:26:15 +0000 (12:26 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 5 Apr 2018 06:59:08 +0000 (08:59 +0200)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/tests/s3passdb.py
selftest/tests.py

index 2f6bc74e869a143c52a16622c18aa248e0480e45..fe2ab08808112cbc6405c1ea981713ff34634cb8 100644 (file)
@@ -97,7 +97,7 @@ class PassdbTestCase(TestCaseInTempDir):
         self.assertEquals("", user.logon_script)
         self.assertEquals(0, user.logon_time)
         self.assertEquals("", user.munged_dial)
-        self.assertEquals('\x87\x8d\x80\x14`l\xda)gzD\xef\xa15?\xc7', user.nt_passwd)
+        self.assertEquals(b'\x87\x8d\x80\x14`l\xda)gzD\xef\xa15?\xc7', user.nt_passwd)
         self.assertEquals("", user.nt_username)
         self.assertEquals(1125418267, user.pass_can_change_time)
         self.assertEquals(1125418267, user.pass_last_set_time)
index 7b81900e521bfdc00cd9ff13c3508fba32239651..61419d3dd64b5eed56622c4df6d00ace98ada0b2 100644 (file)
@@ -76,7 +76,7 @@ planpythontestsuite("none", "samba.tests.hostconfig")
 planpythontestsuite("ad_dc_ntvfs:local", "samba.tests.messaging",
                     py3_compatible=True)
 planpythontestsuite("none", "samba.tests.s3param", py3_compatible=True)
-planpythontestsuite("none", "samba.tests.s3passdb")
+planpythontestsuite("none", "samba.tests.s3passdb", py3_compatible=True)
 planpythontestsuite("none", "samba.tests.s3registry")
 planpythontestsuite("none", "samba.tests.s3windb")
 planpythontestsuite("none", "samba.tests.s3idmapdb")