]> granicus.if.org Git - python/commit
bpo-31234: Add test.support.wait_threads_exit() (#3578)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 14 Sep 2017 20:07:24 +0000 (13:07 -0700)
committerGitHub <noreply@github.com>
Thu, 14 Sep 2017 20:07:24 +0000 (13:07 -0700)
commitff40ecda73178dfcad24e26240d684356ef20793
tree0533f9354f838a97a67fc22749b1b1b7374691fb
parentb8c7be2c523b012e57915182543d06657161057f
bpo-31234: Add test.support.wait_threads_exit() (#3578)

Use _thread.count() to wait until threads exit. The new context
manager prevents the "dangling thread" warning.
Lib/test/lock_tests.py
Lib/test/support/__init__.py
Lib/test/test_socket.py
Lib/test/test_thread.py
Lib/test/test_threading.py
Lib/test/test_threadsignals.py