prevent refleaks from threads

This commit is contained in:
Benjamin Peterson 2009-05-14 22:37:49 +00:00
parent 42b5bcf048
commit 92d102bf6d
1 changed files with 5 additions and 1 deletions

View 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__":