From fcc09bbad6b51a785c55ebccc0c4817cf111bf50 Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Tue, 3 Aug 2004 10:45:59 +0000 Subject: [PATCH] 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). --- Lib/test/test_threaded_import.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_threaded_import.py b/Lib/test/test_threaded_import.py index 8bdae4249df..dc27d4e66a7 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()