diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-05-01 20:28:45 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-05-01 20:28:45 (GMT) |
commit | 73e97d8e217b95c17876f0e20d68a21922d9b746 (patch) | |
tree | 1fa00a5795e146046cfea6e7fef1760fc4c26d5c | |
parent | 813f11815728501b27447a9429ea5b42ba005d37 (diff) | |
download | cpython-73e97d8e217b95c17876f0e20d68a21922d9b746.zip cpython-73e97d8e217b95c17876f0e20d68a21922d9b746.tar.gz cpython-73e97d8e217b95c17876f0e20d68a21922d9b746.tar.bz2 |
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
........
-rw-r--r-- | Lib/test/test_ssl.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 0e86457..db640c1 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -57,27 +57,6 @@ class BasicTests(unittest.TestCase): else: raise - def test_connect(self): - if not test_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 |