]> granicus.if.org Git - python/commitdiff
Don't exit test_main() with the lock 'done' held -- there's no cleaner
authorMichael W. Hudson <mwh@python.net>
Tue, 3 Aug 2004 10:45:59 +0000 (10:45 +0000)
committerMichael W. Hudson <mwh@python.net>
Tue, 3 Aug 2004 10:45:59 +0000 (10:45 +0000)
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

index 8bdae4249dfed71e8584d17ba9bd719550d5803d..dc27d4e66a7abfdc5e5b355d2310ca1f8d9782d5 100644 (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()