Lines Matching refs:ctypes
165 # exposed at the Python level. This test relies on ctypes to get at it.
168 import ctypes
170 self.skipTest('requires ctypes')
172 set_async_exc = ctypes.pythonapi.PyThreadState_SetAsyncExc
177 exception = ctypes.py_object(AsyncExc)
183 result = set_async_exc(ctypes.c_long(tid), exception)
229 result = set_async_exc(ctypes.c_long(-1), exception)
242 result = set_async_exc(ctypes.c_long(t.id), exception)
274 import ctypes
276 self.skipTest('requires ctypes')
279 import ctypes, sys, time, thread
288 ensure = ctypes.pythonapi.PyGILState_Ensure
289 release = ctypes.pythonapi.PyGILState_Release