Home | History | Annotate | Download | only in test

Lines Matching refs:ctypes

2 import ctypes
5 MyCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int)
6 OtherCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int, ctypes.c_ulonglong)
9 dll = ctypes.CDLL(_ctypes_test.__file__)
17 f.restype = ctypes.c_int
18 f.argtypes = [ctypes.c_int, MyCallback]
56 class X(ctypes.Structure):
88 proto = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int, ctypes.c_int)
93 a = sys.getrefcount(ctypes.c_int)
95 self.assertEqual(sys.getrefcount(ctypes.c_int), a)