]> granicus.if.org Git - python/commit
bpo-30387: Fix warning in test_threading (#1634)
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 17 May 2017 18:58:50 +0000 (11:58 -0700)
committerGitHub <noreply@github.com>
Wed, 17 May 2017 18:58:50 +0000 (11:58 -0700)
commitf8d05b3a24e745ab4a974b891ac1389e2f11ce4d
tree4e131dd471001d21c6f1c705e963e95ea4bf84dd
parent6f75bc003ab4d5294b0291289ae03f7a8d305f46
bpo-30387: Fix warning in test_threading (#1634)

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