summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-07-18 23:50:22 (GMT)
committerGuido van Rossum <guido@python.org>1997-07-18 23:50:22 (GMT)
commitc864ad695f9831340d10b1b4161524a58780422f (patch)
tree2ab82e543c7da858e51b4e84aaef268d2cbc3e71 /Lib
parentedca74a62728dde828340e7c3ffe951873e283b2 (diff)
downloadcpython-c864ad695f9831340d10b1b4161524a58780422f.zip
cpython-c864ad695f9831340d10b1b4161524a58780422f.tar.gz
cpython-c864ad695f9831340d10b1b4161524a58780422f.tar.bz2
Nit: round delays to 0.1 second.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_thread.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_thread.py b/Lib/test/test_thread.py
index 8a1f435..113135b 100644
--- a/Lib/test/test_thread.py
+++ b/Lib/test/test_thread.py
@@ -21,7 +21,7 @@ def task(ident):
delay = whrandom.random() * numtasks
whmutex.release()
if verbose:
- print 'task', ident, 'will run for', delay, 'sec'
+ print 'task', ident, 'will run for', round(delay, 1), 'sec'
time.sleep(delay)
if verbose:
print 'task', ident, 'done'
@@ -89,7 +89,7 @@ def task2(ident):
delay = whrandom.random() * numtasks
whmutex.release()
if verbose:
- print 'task', ident, 'will run for', delay, 'sec'
+ print 'task', ident, 'will run for', round(delay, 1), 'sec'
time.sleep(delay)
if verbose:
print 'task', ident, 'entering barrier', i