]> granicus.if.org Git - python/commit
bpo-30387: Fix warning in test_threading (#1634) (#1637)
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 17 May 2017 21:49:43 +0000 (14:49 -0700)
committerGitHub <noreply@github.com>
Wed, 17 May 2017 21:49:43 +0000 (14:49 -0700)
commitf5633e02433a81a6d0f14fc1c3294e752f4ac1a3
tree512a88beafb3b7685dfecd01274276efe64488f6
parent9081b36f330964faa4dee3af03228d2ca7c71835
bpo-30387: Fix warning in test_threading (#1634) (#1637)

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 f8d05b3a24e745ab4a974b891ac1389e2f11ce4d)
Lib/test/test_threading.py