#1674032: return value of flag from Event.wait(). OKed by Guido.

This commit is contained in:
Georg Brandl 2009-03-31 20:41:08 +00:00
parent 1d7d5325be
commit ef660e8e50
3 changed files with 12 additions and 4 deletions

View file

@ -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)