def test_getaddrinfo_mp(self):
"""This test would make gevent's hub threadpool kill upon hub
destruction in child block forever. Gipc resolves this by killing
threadpool even harder.
"""
import gevent.socket as socket
socket.getaddrinfo("localhost", 21)
p = start_process(target=complchild_test_getaddrinfo_mp)
p.join(timeout=1)
assert p.exitcode == 0
评论列表
文章目录