mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Don't exit test_main() with the lock 'done' held -- there's no cleaner
way to guarantee a deadlock on the next call! If I've inadvertently done some damage to this test, sorry (but I don't think I have).
This commit is contained in:
parent
782d8ffb42
commit
fcc09bbad6
1 changed files with 1 additions and 0 deletions
|
@ -51,6 +51,7 @@ def test_main(): # magic name! see above
|
||||||
done.acquire()
|
done.acquire()
|
||||||
if verbose:
|
if verbose:
|
||||||
print "OK."
|
print "OK."
|
||||||
|
done.release()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
test_main()
|
test_main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue