1
0
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:
Douglas Bagnall
2020-07-04 13:44:52 +12:00
committed by Noel Power
parent 32eb7f3966
commit 323073f4e0
3 changed files with 2 additions and 5 deletions

View File

@@ -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):

View File

@@ -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):