summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib2_localnet.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-04-20 11:40:08 (GMT)
committerGitHub <noreply@github.com>2017-04-20 11:40:08 (GMT)
commitd20324a7fab6734bae19b1f070b5c8aae5ff3612 (patch)
tree4f14e79dd66ec723bb7b2d9371860cb30215a703 /Lib/test/test_urllib2_localnet.py
parentb85c136903c6d2368162f7c4a58f258c9c69ead0 (diff)
downloadcpython-d20324a7fab6734bae19b1f070b5c8aae5ff3612.zip
cpython-d20324a7fab6734bae19b1f070b5c8aae5ff3612.tar.gz
cpython-d20324a7fab6734bae19b1f070b5c8aae5ff3612.tar.bz2
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
Diffstat (limited to 'Lib/test/test_urllib2_localnet.py')
-rw-r--r--Lib/test/test_urllib2_localnet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_urllib2_localnet.py b/Lib/test/test_urllib2_localnet.py
index 70c4c01..716b6aa 100644
--- a/Lib/test/test_urllib2_localnet.py
+++ b/Lib/test/test_urllib2_localnet.py
@@ -664,7 +664,7 @@ def setUpModule():
def tearDownModule():
if threads_key:
- support.threading_cleanup(threads_key)
+ support.threading_cleanup(*threads_key)
if __name__ == "__main__":
unittest.main()