[Python-checkins] r65829 - python/trunk/Lib/test/test_ssl.py

benjamin.peterson python-checkins at python.org
Mon Aug 18 20:39:58 CEST 2008


Author: benjamin.peterson
Date: Mon Aug 18 20:39:57 2008
New Revision: 65829

Log:
fix old API names in test_ssl

Modified:
   python/trunk/Lib/test/test_ssl.py

Modified: python/trunk/Lib/test/test_ssl.py
==============================================================================
--- python/trunk/Lib/test/test_ssl.py	(original)
+++ python/trunk/Lib/test/test_ssl.py	Mon Aug 18 20:39:57 2008
@@ -200,7 +200,7 @@
                 self.sock.setblocking(1)
                 self.sslconn = None
                 threading.Thread.__init__(self)
-                self.setDaemon(True)
+                self.daemon = True
 
             def show_conn_details(self):
                 if self.server.certreqs == ssl.CERT_REQUIRED:
@@ -338,7 +338,7 @@
             self.port = test_support.bind_port(self.sock)
             self.active = False
             threading.Thread.__init__(self)
-            self.setDaemon(False)
+            self.daemon = True
 
         def start (self, flag=None):
             self.flag = flag
@@ -423,7 +423,7 @@
             self.server = self.EchoServer(certfile)
             self.port = self.server.port
             threading.Thread.__init__(self)
-            self.setDaemon(True)
+            self.daemon = True
 
         def __str__(self):
             return "<%s %s>" % (self.__class__.__name__, self.server)
@@ -567,7 +567,7 @@
             self.server = self.HTTPSServer(
                 (HOST, self.port), self.RootedHTTPRequestHandler, certfile)
             threading.Thread.__init__(self)
-            self.setDaemon(True)
+            self.daemon = True
 
         def __str__(self):
             return "<%s %s>" % (self.__class__.__name__, self.server)


More information about the Python-checkins mailing list