]> granicus.if.org Git - python/commit
bpo-30845: Enhance test_concurrent_futures cleanup (#2564) (#2880)
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 26 Jul 2017 03:05:09 +0000 (05:05 +0200)
committerGitHub <noreply@github.com>
Wed, 26 Jul 2017 03:05:09 +0000 (05:05 +0200)
commita6f045224a03f9b5f940c80ee142a2a4b4a9c9d8
tree6adc6cd8551d2e1a4ce8c53d6d0f1f328ea345aa
parentd0adfb25c5082046133a18fd185375508c1c334f
bpo-30845: Enhance test_concurrent_futures cleanup (#2564) (#2880)

* 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 3df9dec425b0254df1cdf41922fd8d6b08bf47e4)
Lib/test/support/__init__.py
Lib/test/test_concurrent_futures.py