bpo-30845: Enhance test_concurrent_futures cleanup (#2564) · python/cpython@3df9dec · GitHub
Skip to content

Commit 3df9dec

Browse files
authored
bpo-30845: Enhance test_concurrent_futures cleanup (#2564)
* bpo-30845: reap_children() now logs warnings * bpo-30845: Enhance test_concurrent_futures cleanup In setUp() and tearDown() methods of test_concurrent_futures tests, make sure that tests don't leak threads nor processes. Clear explicitly the reference to the executor to make it that it's destroyed (to prevent "dangling threads" warning).
1 parent 4835041 commit 3df9dec

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

Lib/test/support/__init__.py

Lines changed: 2 additions & 1 deletion

Lib/test/test_concurrent_futures.py

Lines changed: 7 additions & 0 deletions

0 commit comments

Comments
 (0)