Ned Deily <n...@acm.org> added the comment:

A better fix for the program is to mark the test_loop thread as a daemon 
thread.  As the threading module documentation says, by default threads started 
from the main thread are non-daemon threads and the "entire Python program 
exits when no alive non-daemon threads are left."  The test case terminates 
properly by adding a thread.daemon = True after the threading.Thread call in 
run().

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9863>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to