From 13da5fa999b0c5ed05af43e86c4b80fcddf73f96 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 30 Apr 2003 03:03:37 +0000 Subject: Make time.sleep calls go to 0 for common testing. --- Lib/test/test_dummy_threading.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Lib/test/test_dummy_threading.py') diff --git a/Lib/test/test_dummy_threading.py b/Lib/test/test_dummy_threading.py index e377230ef5..3724f1e5a4 100644 --- a/Lib/test/test_dummy_threading.py +++ b/Lib/test/test_dummy_threading.py @@ -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() -- cgit v1.2.1