]> granicus.if.org Git - python/commitdiff
prevent refleaks from threads
authorBenjamin Peterson <benjamin@python.org>
Thu, 14 May 2009 22:37:49 +0000 (22:37 +0000)
committerBenjamin Peterson <benjamin@python.org>
Thu, 14 May 2009 22:37:49 +0000 (22:37 +0000)
Lib/test/test_hashlib.py

index 4ba07b1cea40ce016cc4cf5fa5bcf0c010caf57d..b736755836a80d2b4249bf81c0e2618ebd7937f6 100644 (file)
@@ -256,7 +256,11 @@ class HashLibTestCase(unittest.TestCase):
 
 
 def test_main():
-    test_support.run_unittest(HashLibTestCase)
+    key = test_support.threading_setup()
+    try:
+        test_support.run_unittest(HashLibTestCase)
+    finally:
+        test_support.threading_cleanup(*key)
 
 
 if __name__ == "__main__":