diff options
author | Brett Cannon <bcannon@gmail.com> | 2003-04-30 03:03:37 +0000 |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2003-04-30 03:03:37 +0000 |
commit | 13da5fa999b0c5ed05af43e86c4b80fcddf73f96 (patch) | |
tree | 3e8ff36019a12c974fc9b4588007b6be5de5a500 /Lib/test/test_dummy_threading.py | |
parent | e6b7033e7955573e3a62975b1e1ef2f41a1419dc (diff) | |
download | cpython-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.py | 5 |
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() |