mirror of
https://github.com/python/cpython.git
synced 2025-07-28 13:44:43 +00:00
#1674032: return value of flag from Event.wait(). OKed by Guido.
This commit is contained in:
parent
1d7d5325be
commit
ef660e8e50
3 changed files with 12 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue