mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
py/tests/dcerpc_rpc: Py3 compat integer types
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Noel Power <noel.power@suse.com>
This commit is contained in:
parent
aafe6bf96a
commit
9c2447e2d8
@ -22,6 +22,7 @@ sys.path.insert(0, "bin/python")
|
|||||||
import samba
|
import samba
|
||||||
import samba.tests
|
import samba.tests
|
||||||
from samba.dcerpc import drsuapi
|
from samba.dcerpc import drsuapi
|
||||||
|
from samba.compat import integer_types
|
||||||
import talloc
|
import talloc
|
||||||
|
|
||||||
talloc.enable_null_tracking()
|
talloc.enable_null_tracking()
|
||||||
@ -98,7 +99,7 @@ class RpcTests(object):
|
|||||||
if isinstance(value, str):
|
if isinstance(value, str):
|
||||||
# print "%s=\"%s\"" % (n, value)
|
# print "%s=\"%s\"" % (n, value)
|
||||||
pass
|
pass
|
||||||
elif isinstance(value, int) or isinstance(value, long):
|
elif isinstance(value, integer_types):
|
||||||
# print "%s=%d" % (n, value)
|
# print "%s=%d" % (n, value)
|
||||||
pass
|
pass
|
||||||
elif isinstance(value, type):
|
elif isinstance(value, type):
|
||||||
|
Loading…
Reference in New Issue
Block a user