From: Benjamin Peterson Date: Thu, 14 May 2009 22:37:49 +0000 (+0000) Subject: prevent refleaks from threads X-Git-Tag: v2.7a1~1191 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92d102bf6d90e015360f71c370b540151b4acdba;p=thirdparty%2FPython%2Fcpython.git prevent refleaks from threads --- diff --git a/Lib/test/test_hashlib.py b/Lib/test/test_hashlib.py index 4ba07b1cea40..b736755836a8 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__":