cpython/Lib/test/support
Victor Stinner 5dbb48aaac
[3.6] bpo-31234: Add test.support.wait_threads_exit() (GH-3578) (GH-7315)
* bpo-31234: Add test.support.wait_threads_exit() (GH-3578)

Use _thread.count() to wait until threads exit. The new context
manager prevents the "dangling thread" warning.

(cherry picked from commit ff40ecda73)

* bpo-31234: Try to fix lock_tests warning (#3557)

Try to fix the "Warning -- threading_cleanup() failed to cleanup 1
threads" warning in test.lock_tests: wait a little bit longer to give
time to the threads to complete.

Warning seen on test_thread and test_importlib.

(cherry picked from commit 096ae3373a)
2018-06-01 15:51:02 +02:00
..
__init__.py [3.6] bpo-31234: Add test.support.wait_threads_exit() (GH-3578) (GH-7315) 2018-06-01 15:51:02 +02:00
script_helper.py [3.6] Improves the ability to build in CI (GH-5730) 2018-02-17 20:35:03 -08:00