Issue #7222: Make thread "reaping" more reliable so that reference
leak-chasing test runs give sensible results. The previous method of
reaping threads could return successfully while some Thread objects were
still referenced. This also introduces a new private function:
:func:hread._count().
diff --git a/Misc/NEWS b/Misc/NEWS
index 85fdc21..4d6225d 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -1525,6 +1525,12 @@
Tests
-----
+- Issue #7222: Make thread "reaping" more reliable so that reference
+ leak-chasing test runs give sensible results. The previous method of
+ reaping threads could return successfully while some Thread objects were
+ still referenced. This also introduces a new private function:
+ :func:`thread._count()`.
+
- Issue #7151: fixed regrtest -j so that output to stderr from a test no
longer runs the risk of causing the worker thread to fail.