diff options
author | Joe Guo <joeg@catalyst.net.nz> | 2018-04-04 11:19:48 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2018-04-05 08:59:10 +0200 |
commit | 5d774fa732ddb0d71b42eed09be041efcc76c6fe (patch) | |
tree | 3414bfe558e889a8dd4d8a52978a93090aaeffb4 /selftest/tests.py | |
parent | 68d89b0a19b73fe218938280e7b4395261d7c269 (diff) | |
download | samba-5d774fa732ddb0d71b42eed09be041efcc76c6fe.tar.gz |
selftest: enable py3 for samba.tests.upgradeprovision
1. `has_key` was removed from dict in Python 3, use `in` instead.
2. `cmp` was removed in Python 3, define it ourselves.
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>
Diffstat (limited to 'selftest/tests.py')
-rw-r--r-- | selftest/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/selftest/tests.py b/selftest/tests.py index a3df849f6ac..c0c4bbc63bb 100644 --- a/selftest/tests.py +++ b/selftest/tests.py @@ -145,7 +145,7 @@ plantestsuite( ["PYTHON=%s" % python, os.path.join(bbdir, "functionalprep.sh"), '$PREFIX_ABS/provision', configuration]) -planpythontestsuite("none", "samba.tests.upgradeprovision") +planpythontestsuite("none", "samba.tests.upgradeprovision", py3_compatible=True) planpythontestsuite("none", "samba.tests.xattr", py3_compatible=True) planpythontestsuite("none", "samba.tests.ntacls", py3_compatible=True) planpythontestsuite("none", "samba.tests.policy", py3_compatible=True) |