fix test_ssl
This commit is contained in:
parent
cc313061a5
commit
502d89ed15
|
@ -201,7 +201,7 @@ else:
|
|||
self.sock.setblocking(1)
|
||||
self.sslconn = None
|
||||
threading.Thread.__init__(self)
|
||||
self.setDaemon(True)
|
||||
self.set_daemon(True)
|
||||
|
||||
def wrap_conn (self):
|
||||
try:
|
||||
|
@ -317,7 +317,7 @@ else:
|
|||
self.flag = None
|
||||
self.active = False
|
||||
threading.Thread.__init__(self)
|
||||
self.setDaemon(False)
|
||||
self.set_daemon(False)
|
||||
|
||||
def start (self, flag=None):
|
||||
self.flag = flag
|
||||
|
@ -473,7 +473,7 @@ else:
|
|||
self.server = self.HTTPSServer(
|
||||
(HOST, self.port), self.RootedHTTPRequestHandler, certfile)
|
||||
threading.Thread.__init__(self)
|
||||
self.setDaemon(True)
|
||||
self.set_daemon(True)
|
||||
|
||||
def __str__(self):
|
||||
return "<%s %s>" % (self.__class__.__name__, self.server)
|
||||
|
@ -558,7 +558,7 @@ else:
|
|||
self.port = support.find_unused_port()
|
||||
self.server = self.EchoServer(self.port, certfile)
|
||||
threading.Thread.__init__(self)
|
||||
self.setDaemon(True)
|
||||
self.set_daemon(True)
|
||||
|
||||
def __str__(self):
|
||||
return "<%s %s>" % (self.__class__.__name__, self.server)
|
||||
|
|
Loading…
Reference in New Issue