Zachary Ware added the comment:
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!
----------
versions: +Python 3.5 -Python 3.3
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue16968>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com