]> granicus.if.org Git - python/commit
bpo-30845: Enhance test_concurrent_futures cleanup (#2564)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 4 Jul 2017 11:14:04 +0000 (13:14 +0200)
committerGitHub <noreply@github.com>
Tue, 4 Jul 2017 11:14:04 +0000 (13:14 +0200)
commit3df9dec425b0254df1cdf41922fd8d6b08bf47e4
treecc5165b34102dbdbe616f0e8f78516e7fa8deeb5
parent48350412b70c76fa51f488cfc736c80d59b5e8eb
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).
Lib/test/support/__init__.py
Lib/test/test_concurrent_futures.py