Make time.sleep calls go to 0 for common testing.

This commit is contained in:
Brett Cannon 2003-04-30 03:03:37 +00:00
parent e6b7033e79
commit 13da5fa999
2 changed files with 19 additions and 11 deletions

View file

@ -12,7 +12,10 @@ class TestThread(_threading.Thread):
def run(self):
global running
delay = random.random() * 2
# Uncomment if testing another module, such as the real 'threading'
# module.
#delay = random.random() * 2
delay = 0
if verbose:
print 'task', self.getName(), 'will run for', delay, 'sec'
sema.acquire()