fixes ssl version in test to maintain backward compatibility.

This commit is contained in:
Moisés Guimarães
2016-11-13 10:16:09 -03:00
parent 20cfbe399c
commit e1c01378c7

View File

@@ -32,7 +32,7 @@ class SSLClientTest(unittest.TestCase):
def test_wrap_socket(self):
self.secure_sock = self.ssl_provider.wrap_socket(
self.sock, ssl_version=ssl.PROTOCOL_TLSv1_2)
self.sock, ssl_version=ssl.PROTOCOL_SSLv23)
self.secure_sock.connect((self.host, self.port))
self.secure_sock.send(b"GET / HTTP/1.1\n\n")