selftest: enable py3 for samba.tests.hostconfig
authorJoe Guo <joeg@catalyst.net.nz>
Tue, 3 Apr 2018 03:24:28 +0000 (15:24 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 5 Apr 2018 06:59:10 +0000 (08:59 +0200)
Fix relative import.

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/hostconfig.py
selftest/tests.py

index a66fbc231301ca4b22267c1b70c589eab7181765..08fff4fdd4c73943f58b03ebe0a169e54428fa4c 100644 (file)
@@ -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
index 24ed0c6819d35f034e86c1c7e84af9826e666034..a3df849f6ac47534fc71b6563ea4dc0e2f2981fc 100644 (file)
@@ -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)