From 8caa2cd48a8ad4ce6aeeb16e48a2382f913e073b Mon Sep 17 00:00:00 2001 From: Noel Power Date: Thu, 22 Mar 2018 12:26:15 +0000 Subject: [PATCH] python selftest: enable samba.tests.s3passdb to run with python3 Signed-off-by: Noel Power Reviewed-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- python/samba/tests/s3passdb.py | 2 +- selftest/tests.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/samba/tests/s3passdb.py b/python/samba/tests/s3passdb.py index 2f6bc74e869a..fe2ab0880811 100644 --- a/python/samba/tests/s3passdb.py +++ b/python/samba/tests/s3passdb.py @@ -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) diff --git a/selftest/tests.py b/selftest/tests.py index 7b81900e521b..61419d3dd64b 100644 --- a/selftest/tests.py +++ b/selftest/tests.py @@ -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") -- 2.34.1