allow ssl module to compile if openssl doesn't support SSL 3 (closes #22935)

Patch by Kurt Roeckx.
This commit is contained in:
Benjamin Peterson 2014-12-05 21:59:35 -05:00
parent 81f01fb104
commit e32467cf6a
4 changed files with 24 additions and 8 deletions

View file

@ -889,7 +889,7 @@ class TestTLS_FTPClass(TestCase):
def test_auth_ssl(self):
try:
self.client.ssl_version = ssl.PROTOCOL_SSLv3
self.client.ssl_version = ssl.PROTOCOL_SSLv23
self.client.auth()
self.assertRaises(ValueError, self.client.auth)
finally: