summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2004-08-03 10:45:59 (GMT)
committerMichael W. Hudson <mwh@python.net>2004-08-03 10:45:59 (GMT)
commitfcc09bbad6b51a785c55ebccc0c4817cf111bf50 (patch)
tree77ef11250127b550e3b0e0e389122e5e2c35e617 /Lib
parent782d8ffb42e51ccf834f0b4ecc153df2cdb7cd64 (diff)
downloadcpython-fcc09bbad6b51a785c55ebccc0c4817cf111bf50.zip
cpython-fcc09bbad6b51a785c55ebccc0c4817cf111bf50.tar.gz
cpython-fcc09bbad6b51a785c55ebccc0c4817cf111bf50.tar.bz2
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).
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_threaded_import.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_threaded_import.py b/Lib/test/test_threaded_import.py
index 8bdae42..dc27d4e 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()