selftest: enable py3 for samba.tests.upgradeprovision
authorJoe Guo <joeg@catalyst.net.nz>
Tue, 3 Apr 2018 23:19:48 +0000 (11:19 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 5 Apr 2018 06:59:10 +0000 (08:59 +0200)
commit5d774fa732ddb0d71b42eed09be041efcc76c6fe
tree3414bfe558e889a8dd4d8a52978a93090aaeffb4
parent68d89b0a19b73fe218938280e7b4395261d7c269
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>
python/samba/descriptor.py
python/samba/upgradehelpers.py
selftest/tests.py