Home | History | Annotate | Download | only in test

Lines Matching defs:thread

11     import thread
14 thread = None
30 #this function can be interrupted by thread switching so let's
49 #main thread
63 #do every callback on a separate thread
69 context.n = 2 #submits per thread
75 threads = [threading.Thread(target=self.pendingcalls_thread,
94 #again, just using the main thread, likely they will all be dispatched at
104 @unittest.skipUnless(threading and thread, 'Threading required for this test.')
109 # some extra thread-state tests driven via _testcapi
114 idents.append(thread.get_ident())
119 # Check our main thread is in the list exactly 3 times.
120 self.assertEqual(idents.count(thread.get_ident()), 3,
121 "Couldn't find main thread correctly in the list")
124 t = threading.Thread(target=target)