From 92d102bf6d90e015360f71c370b540151b4acdba Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 14 May 2009 22:37:49 +0000 Subject: [PATCH] prevent refleaks from threads --- Lib/test/test_hashlib.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_hashlib.py b/Lib/test/test_hashlib.py index 4ba07b1cea4..b736755836a 100644 --- a/Lib/test/test_hashlib.py +++ b/Lib/test/test_hashlib.py @@ -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__":