From: Joe Guo Date: Tue, 3 Apr 2018 03:24:28 +0000 (+1200) Subject: selftest: enable py3 for samba.tests.hostconfig X-Git-Tag: talloc-2.1.13~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68d89b0a19b73fe218938280e7b4395261d7c269;p=thirdparty%2Fsamba.git selftest: enable py3 for samba.tests.hostconfig Fix relative import. Signed-off-by: Joe Guo Reviewed-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- diff --git a/python/samba/hostconfig.py b/python/samba/hostconfig.py index a66fbc23130..08fff4fdd4c 100644 --- a/python/samba/hostconfig.py +++ b/python/samba/hostconfig.py @@ -16,8 +16,8 @@ # """Local host configuration.""" - -from samdb import SamDB +from __future__ import absolute_import +from .samdb import SamDB class Hostconfig(object): """Aggregate object that contains all information about the configuration diff --git a/selftest/tests.py b/selftest/tests.py index 24ed0c6819d..a3df849f6ac 100644 --- a/selftest/tests.py +++ b/selftest/tests.py @@ -72,7 +72,7 @@ planpythontestsuite("none", "samba.tests.netcmd") planpythontestsuite("none", "samba.tests.dcerpc.rpc_talloc", py3_compatible=True) planpythontestsuite("none", "samba.tests.dcerpc.array", py3_compatible=True) planpythontestsuite("none", "samba.tests.dcerpc.string", py3_compatible=True) -planpythontestsuite("none", "samba.tests.hostconfig") +planpythontestsuite("none", "samba.tests.hostconfig", py3_compatible=True) planpythontestsuite("ad_dc_ntvfs:local", "samba.tests.messaging", py3_compatible=True) planpythontestsuite("none", "samba.tests.s3param", py3_compatible=True)