a useful decorator for cleaning up threads
diff --git a/Lib/test/test_hashlib.py b/Lib/test/test_hashlib.py
index b736755..e77b246 100644
--- a/Lib/test/test_hashlib.py
+++ b/Lib/test/test_hashlib.py
@@ -254,14 +254,9 @@
self.assertEqual(expected_hash, hasher.hexdigest())
-
+@test_support.reap_threads
def test_main():
- key = test_support.threading_setup()
- try:
- test_support.run_unittest(HashLibTestCase)
- finally:
- test_support.threading_cleanup(*key)
-
+ test_support.run_unittest(HashLibTestCase)
if __name__ == "__main__":
test_main()