Message222107
| Author | zach.ware |
|---|---|
| Recipients | BreamoreBoy, brett.cannon, chris.jerdonek, ezio.melotti, serhiy.storchaka, zach.ware |
| Date | 2014-07-02.14:23:25 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1404311006.33.0.654337693846.issue16968@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Since then, Senthil Kumaran converted test_urllib2_localnet (and another urllib test or two) to unittest.main, using this:
"""
threads_key = None
def setUpModule():
# Store the threading_setup in a key and ensure that it is cleaned up
# in the tearDown
global threads_key
threads_key = support.threading_setup()
def tearDownModule():
if threads_key:
support.threading_cleanup(threads_key)
if __name__ == "__main__":
unittest.main()
"""
Since nobody has said anything against that in the two months since it was done, that's what I was going to go with when I got back to this; support.reap_children() can just be called in tearDownModule. If you'd like to provide a patch, Mark, please do so! |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2014-07-02 14:23:26 | zach.ware | set | recipients: + zach.ware, brett.cannon, ezio.melotti, chris.jerdonek, BreamoreBoy, serhiy.storchaka |
| 2014-07-02 14:23:26 | zach.ware | set | messageid: <1404311006.33.0.654337693846.issue16968@psf.upfronthosting.co.za> |
| 2014-07-02 14:23:26 | zach.ware | link | issue16968 messages |
| 2014-07-02 14:23:25 | zach.ware | create | |