selftest: enable py3 for samba.tests.upgrade
authorJoe Guo <joeg@catalyst.net.nz>
Tue, 3 Apr 2018 02:29:26 +0000 (14:29 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 5 Apr 2018 06:59:09 +0000 (08:59 +0200)
commit87743b3275f2bd218b417d46aa69b18e56a65ed9
tree72c3da676ce5b36efc6d48b47b053bd069d023f6
parent908ee2d3d290148403b560fb8cf3a4128cbd2ec8
selftest: enable py3 for samba.tests.upgrade

`os.tempname` is removed in Python 3.
Use `tempfile` instead.

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/tests/__init__.py
selftest/tests.py