summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ssl.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-05-01 20:26:58 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-05-01 20:26:58 (GMT)
commit8651810df93ced170909b21f4cca66c51540f804 (patch)
tree67336dd9fd0f0f103b8c9580ed1f7eddaeb649c3 /Lib/test/test_ssl.py
parent5cace78c87144dc91451ff33367bae9c7e0e7438 (diff)
downloadcpython-8651810df93ced170909b21f4cca66c51540f804.zip
cpython-8651810df93ced170909b21f4cca66c51540f804.tar.gz
cpython-8651810df93ced170909b21f4cca66c51540f804.tar.bz2
Remove duplicate test
Diffstat (limited to 'Lib/test/test_ssl.py')
-rw-r--r--Lib/test/test_ssl.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index c7cd388..13baeae 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -54,27 +54,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