]> granicus.if.org Git - python/commit
support.threading_cleanup() log a warning on fail (#1195)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 20 Apr 2017 11:40:08 +0000 (13:40 +0200)
committerGitHub <noreply@github.com>
Thu, 20 Apr 2017 11:40:08 +0000 (13:40 +0200)
commitd20324a7fab6734bae19b1f070b5c8aae5ff3612
tree4f14e79dd66ec723bb7b2d9371860cb30215a703
parentb85c136903c6d2368162f7c4a58f258c9c69ead0
support.threading_cleanup() log a warning on fail (#1195)

The @reap_threads decorator and the threading_cleanup() function of
test.support now log a warning if they fail to clenaup threads.

Fix also the usage of support.threading_cleanup() in
test_urllib2_localnet.

The log may help to debug such other warning seen on the AMD64
FreeBSD CURRENT Non-Debug 3.x buildbot:

Warning -- threading._dangling was modified by test_logging
Lib/test/support/__init__.py
Lib/test/test_urllib2_localnet.py