Commit 502d89ed authored by Benjamin Peterson's avatar Benjamin Peterson

fix test_ssl

parent cc313061
...@@ -201,7 +201,7 @@ else: ...@@ -201,7 +201,7 @@ else:
self.sock.setblocking(1) self.sock.setblocking(1)
self.sslconn = None self.sslconn = None
threading.Thread.__init__(self) threading.Thread.__init__(self)
self.setDaemon(True) self.set_daemon(True)
def wrap_conn (self): def wrap_conn (self):
try: try:
...@@ -317,7 +317,7 @@ else: ...@@ -317,7 +317,7 @@ else:
self.flag = None self.flag = None
self.active = False self.active = False
threading.Thread.__init__(self) threading.Thread.__init__(self)
self.setDaemon(False) self.set_daemon(False)
def start (self, flag=None): def start (self, flag=None):
self.flag = flag self.flag = flag
...@@ -473,7 +473,7 @@ else: ...@@ -473,7 +473,7 @@ else:
self.server = self.HTTPSServer( self.server = self.HTTPSServer(
(HOST, self.port), self.RootedHTTPRequestHandler, certfile) (HOST, self.port), self.RootedHTTPRequestHandler, certfile)
threading.Thread.__init__(self) threading.Thread.__init__(self)
self.setDaemon(True) self.set_daemon(True)
def __str__(self): def __str__(self):
return "<%s %s>" % (self.__class__.__name__, self.server) return "<%s %s>" % (self.__class__.__name__, self.server)
...@@ -558,7 +558,7 @@ else: ...@@ -558,7 +558,7 @@ else:
self.port = support.find_unused_port() self.port = support.find_unused_port()
self.server = self.EchoServer(self.port, certfile) self.server = self.EchoServer(self.port, certfile)
threading.Thread.__init__(self) threading.Thread.__init__(self)
self.setDaemon(True) self.set_daemon(True)
def __str__(self): def __str__(self):
return "<%s %s>" % (self.__class__.__name__, self.server) return "<%s %s>" % (self.__class__.__name__, self.server)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment