Message116495
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(). |
|
Date |
User |
Action |
Args |
2010-09-15 22:26:38 | ned.deily | set | recipients:
+ ned.deily, pitrou, r.david.murray, cbertram |
2010-09-15 22:26:37 | ned.deily | set | messageid: <1284589597.94.0.115029177543.issue9863@psf.upfronthosting.co.za> |
2010-09-15 22:26:35 | ned.deily | link | issue9863 messages |
2010-09-15 22:26:35 | ned.deily | create | |
|