mirror of https://github.com/python/cpython
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
|
@ -51,6 +51,7 @@ def test_main(): # magic name! see above
|
|||
done.acquire()
|
||||
if verbose:
|
||||
print "OK."
|
||||
done.release()
|
||||
|
||||
if __name__ == "__main__":
|
||||
test_main()
|
||||
|
|
Loading…
Reference in New Issue