[Python-checkins] r80692 - in python/branches/py3k: Lib/test/test_ssl.py

antoine.pitrou python-checkins at python.org
Sat May 1 22:29:38 CEST 2010


Author: antoine.pitrou
Date: Sat May  1 22:29:38 2010
New Revision: 80692

Log:
Merged revisions 80690 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80690 | antoine.pitrou | 2010-05-01 22:26:58 +0200 (sam., 01 mai 2010) | 3 lines
  
  Remove duplicate test
........


Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/Lib/test/test_ssl.py

Modified: python/branches/py3k/Lib/test/test_ssl.py
==============================================================================
--- python/branches/py3k/Lib/test/test_ssl.py	(original)
+++ python/branches/py3k/Lib/test/test_ssl.py	Sat May  1 22:29:38 2010
@@ -36,27 +36,6 @@
 
 class BasicTests(unittest.TestCase):
 
-    def test_connect(self):
-        if not support.is_resource_enabled('network'):
-            return
-        s = ssl.wrap_socket(socket.socket(socket.AF_INET),
-                            cert_reqs=ssl.CERT_NONE)
-        s.connect(("svn.python.org", 443))
-        c = s.getpeercert()
-        if c:
-            self.fail("Peer cert %s shouldn't be here!")
-        s.close()
-
-        # this should fail because we have no verification certs
-        s = ssl.wrap_socket(socket.socket(socket.AF_INET),
-                            cert_reqs=ssl.CERT_REQUIRED)
-        try:
-            s.connect(("svn.python.org", 443))
-        except ssl.SSLError:
-            pass
-        finally:
-            s.close()
-
     def test_constants(self):
         ssl.PROTOCOL_SSLv2
         ssl.PROTOCOL_SSLv23


More information about the Python-checkins mailing list