[3.5] bpo-30387: Fix warning in test_threading (#1634) by vstinner · Pull Request #1637 · python/cpython (original) (raw)

test_is_alive_after_fork() now joins directly the thread to avoid the
following warning added by bpo-30357:

Warning -- threading_cleanup() failed to cleanup 0 threads
after 2 sec (count: 0, dangling: 21)

Use also a different exit code to catch generic exit code 1.
(cherry picked from commit f8d05b3)