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:
Michael W. Hudson 2004-08-03 10:45:59 +00:00
parent 782d8ffb42
commit fcc09bbad6
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ def test_main(): # magic name! see above
done.acquire()
if verbose:
print "OK."
done.release()
if __name__ == "__main__":
test_main()