s3:test: make sids2xids test compatible with py2 and py3
authorJoe Guo <joeg@catalyst.net.nz>
Thu, 13 Dec 2018 03:33:40 +0000 (16:33 +1300)
committerNoel Power <npower@samba.org>
Fri, 14 Dec 2018 13:40:20 +0000 (14:40 +0100)
commit934e336a951a9e6eea00dee9a74059f6a9a37224
tree46399358224f70ae7ac13c3907c4862f880d7121
parent5ddff307b4af5c82d5064745f5bd2c33bd340ced
s3:test: make sids2xids test compatible with py2 and py3

define a wrapper function for subprocess.check_output,
to return bytes for py2 and unicode for py3, and replace Popen with it.

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Noel Power <npower@samba.org>
source3/script/tests/test_wbinfo_sids2xids_int.py