◐ Shell
clean mode source ↗

[3.6] bpo-31234: Join threads in tests by vstinner · Pull Request #3589 · python/cpython

Call thread.join() on threads to prevent the "dangling threads"
warning.

(cherry picked from commit 18e95b4)
* bpo-31234: Join threads in test_hashlib

Use thread.join() to wait until the parallel hash tasks complete
rather than using events. Calling thread.join() prevent "dangling
thread" warnings.

* test_hashlib: minor PEP 8 coding style fixes

(cherry picked from commit 8dcf22f)
Call thread.join() to prevent the "dangling thread" warning.

(cherry picked from commit b8c7be2)
Call thread.join() to prevent the "dangling thread" warning.

(cherry picked from commit 167cbde)
Call the .join() method of threading.Timer timers to prevent the
"threading_cleanup() failed to cleanup 1 threads" warning.

(cherry picked from commit da3e5cf)