From: Michael W. Hudson Date: Tue, 3 Aug 2004 10:45:59 +0000 (+0000) Subject: Don't exit test_main() with the lock 'done' held -- there's no cleaner X-Git-Tag: v2.4a2~47 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fcc09bbad6b51a785c55ebccc0c4817cf111bf50;p=python 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). --- diff --git a/Lib/test/test_threaded_import.py b/Lib/test/test_threaded_import.py index 8bdae4249d..dc27d4e66a 100644 --- a/Lib/test/test_threaded_import.py +++ b/Lib/test/test_threaded_import.py @@ -51,6 +51,7 @@ def test_main(): # magic name! see above done.acquire() if verbose: print "OK." + done.release() if __name__ == "__main__": test_main()