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)