Home | History | Annotate | Download | only in test

Lines Matching refs:exception

176         class AsyncExc(Exception):
179 exception = ctypes.py_object(AsyncExc)
181 # First check it works when setting the exception from the same thread.
185 result = set_async_exc(ctypes.c_long(tid), exception)
186 # The exception is async, so we might have to keep the VM busy until
199 # The exception was raised too quickly for us to get the result.
203 # block waiting to catch the asynchronously set AsyncExc exception.
205 # exception.
231 result = set_async_exc(ctypes.c_long(-1), exception)
234 # Now raise an exception in the worker thread.
243 print " attempting to raise asynch exception in worker"
244 result = set_async_exc(ctypes.c_long(t.id), exception)
247 print " waiting for worker to say it caught the exception"
740 # an exception rather than crashing the interpreter on platforms