From 4b4dc3c70ef19a29386c2b3e8284687851094eb9 Mon Sep 17 00:00:00 2001 From: Vasilii Chernov Date: Fri, 4 Mar 2016 09:31:42 +0100 Subject: Fix python3 initialization from pcilib_t --- pywrap/test_pcilib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pywrap') diff --git a/pywrap/test_pcilib.py b/pywrap/test_pcilib.py index 398d975..74eee4a 100644 --- a/pywrap/test_pcilib.py +++ b/pywrap/test_pcilib.py @@ -82,7 +82,7 @@ class test_pcilib(): def testMemoryLeak(self): try: while(1): - val = long(random.randint(0, 8096)) + val = random.randint(0, 8096) self.pcilib = pcilib.pcilib(self.device, self.model) print(self.pcilib.get_property_list(self.branch)) print(self.pcilib.get_register_info(self.register)) -- cgit v1.2.3