mirror of https://github.com/python/cpython
Remove duplicate test
This commit is contained in:
parent
5cace78c87
commit
8651810df9
|
@ -54,27 +54,6 @@ class BasicTests(unittest.TestCase):
|
||||||
else:
|
else:
|
||||||
raise
|
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):
|
def test_constants(self):
|
||||||
ssl.PROTOCOL_SSLv2
|
ssl.PROTOCOL_SSLv2
|
||||||
ssl.PROTOCOL_SSLv23
|
ssl.PROTOCOL_SSLv23
|
||||||
|
|
Loading…
Reference in New Issue