mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
prevent refleaks from threads
This commit is contained in:
parent
42b5bcf048
commit
92d102bf6d
1 changed files with 5 additions and 1 deletions
|
|
@ -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__":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue