◐ Shell
clean mode source ↗

[3.6] bpo-30845: Enhance test_concurrent_futures cleanup (#2564) by vstinner · Pull Request #2880 · python/cpython

  • 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).

(cherry picked from commit 3df9dec)

https://bugs.python.org/issue30845