Home | History | Annotate | Download | only in test

Lines Matching refs:DELAY

15 DELAY = 0 # Set > 0 when testing a module other than dummy_thread, such as
67 def delay_unlock(to_unlock, delay):
69 time.sleep(delay)
74 _thread.start_new_thread(delay_unlock,(self.lock, DELAY))
78 "(approx. %s sec.) ***" % DELAY
83 self.assertGreaterEqual(end_time - start_time, DELAY,
146 def queue_mark(queue, delay):
147 """Wait for ``delay`` seconds and then put something into ``queue``"""
148 time.sleep(delay)
156 "(will take approx. %s to %s sec.) ***" % (DELAY, thread_count)
158 if DELAY:
164 time.sleep(DELAY)
169 (thread_count, DELAY))
172 global _thread, DELAY
175 DELAY = 2