summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_threading.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-03-31 20:41:08 (GMT)
committerGeorg Brandl <georg@python.org>2009-03-31 20:41:08 (GMT)
commitef660e8e50c607c8abcb02274decdcb6eff1d1b8 (patch)
tree2ce16cdb866acbf4071fdaab760daf84e8cc40fb /Lib/test/test_threading.py
parent1d7d5325be5c766c3446dcf0fce4ebce73d83fa7 (diff)
downloadcpython-ef660e8e50c607c8abcb02274decdcb6eff1d1b8.zip
cpython-ef660e8e50c607c8abcb02274decdcb6eff1d1b8.tar.gz
cpython-ef660e8e50c607c8abcb02274decdcb6eff1d1b8.tar.bz2
#1674032: return value of flag from Event.wait(). OKed by Guido.
Diffstat (limited to 'Lib/test/test_threading.py')
-rw-r--r--Lib/test/test_threading.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py
index c8f9cac..cb6f6d2 100644
--- a/Lib/test/test_threading.py
+++ b/Lib/test/test_threading.py
@@ -186,7 +186,8 @@ class ThreadTests(unittest.TestCase):
# Now raise an exception in the worker thread.
if verbose:
print " waiting for worker thread to get started"
- worker_started.wait()
+ ret = worker_started.wait()
+ self.assertTrue(ret)
if verbose:
print " verifying worker hasn't exited"
self.assert_(not t.finished)