summaryrefslogtreecommitdiff
path: root/Lib/test/test_dummy_threading.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2003-04-30 03:03:37 +0000
committerBrett Cannon <bcannon@gmail.com>2003-04-30 03:03:37 +0000
commit13da5fa999b0c5ed05af43e86c4b80fcddf73f96 (patch)
tree3e8ff36019a12c974fc9b4588007b6be5de5a500 /Lib/test/test_dummy_threading.py
parente6b7033e7955573e3a62975b1e1ef2f41a1419dc (diff)
downloadcpython-git-13da5fa999b0c5ed05af43e86c4b80fcddf73f96.tar.gz
Make time.sleep calls go to 0 for common testing.
Diffstat (limited to 'Lib/test/test_dummy_threading.py')
-rw-r--r--Lib/test/test_dummy_threading.py5
1 files changed, 4 insertions, 1 deletions
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()