Home | History | Annotate | Download | only in test

Lines Matching defs:thread

11     import thread
14 thread = None
23 #this function can be interrupted by thread switching so let's
42 #main thread
56 #do every callback on a separate thread
62 context.n = 2 #submits per thread
69 t = threading.Thread(target=self.pendingcalls_thread, args = (context,))
91 #again, just using the main thread, likely they will all be dispatched at
101 @unittest.skipUnless(threading and thread, 'Threading required for this test.')
106 # some extra thread-state tests driven via _testcapi
111 idents.append(thread.get_ident())
116 # Check our main thread is in the list exactly 3 times.
117 self.assertEqual(idents.count(thread.get_ident()), 3,
118 "Couldn't find main thread correctly in the list")
121 t = threading.Thread(target=target)