mirror of
https://github.com/samba-team/samba.git
synced 2025-12-05 12:23:50 +03:00
python compat: remove integer_types
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Noel Power <npower@samba.org>
This commit is contained in:
committed by
Noel Power
parent
32eb7f3966
commit
323073f4e0
@@ -22,7 +22,6 @@ sys.path.insert(0, "bin/python")
|
||||
import samba
|
||||
import samba.tests
|
||||
from samba.dcerpc import drsuapi
|
||||
from samba.compat import integer_types
|
||||
import talloc
|
||||
|
||||
talloc.enable_null_tracking()
|
||||
@@ -99,7 +98,7 @@ class RpcTests(object):
|
||||
if isinstance(value, str):
|
||||
# print "%s=\"%s\"" % (n, value)
|
||||
pass
|
||||
elif isinstance(value, integer_types):
|
||||
elif isinstance(value, int):
|
||||
# print "%s=%d" % (n, value)
|
||||
pass
|
||||
elif isinstance(value, type):
|
||||
|
||||
@@ -26,7 +26,6 @@ from samba.ndr import ndr_print
|
||||
from samba.dcerpc import server_id
|
||||
import random
|
||||
import os
|
||||
from samba.compat import integer_types
|
||||
|
||||
|
||||
class MessagingTests(TestCase):
|
||||
@@ -41,7 +40,7 @@ class MessagingTests(TestCase):
|
||||
def callback():
|
||||
pass
|
||||
msg_type = x.register((callback, None))
|
||||
self.assertTrue(isinstance(msg_type, integer_types))
|
||||
self.assertTrue(isinstance(msg_type, int))
|
||||
x.deregister(callback, msg_type)
|
||||
|
||||
def test_all_servers(self):
|
||||
|
||||
Reference in New Issue
Block a user