Skip to content

Commit b410384

Browse files
authored
Avoid thread leaks by shutting down the pool
1 parent de27807 commit b410384

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎Lib/test/support/threading_helper.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
def _release():
1818
global _thread_pool
19+
_thread_pool.shutdown(cancel_futures=True)
1920
_thread_pool = None
2021

2122

0 commit comments

Comments
 (0)