File urllib3-test-ssl-drop-sslv3.patch of Package python-urllib3.5163
Index: b/test/with_dummyserver/test_https.py
===================================================================
--- a/test/with_dummyserver/test_https.py
+++ b/test/with_dummyserver/test_https.py
@@ -425,21 +425,21 @@ class TestHTTPS(HTTPSDummyServerTestCase
class TestHTTPS_TLSv1(HTTPSDummyServerTestCase):
certs = DEFAULT_CERTS.copy()
- certs['ssl_version'] = ssl.PROTOCOL_TLSv1
+ certs['ssl_version'] = ssl.PROTOCOL_TLSv1_2
def setUp(self):
self._pool = HTTPSConnectionPool(self.host, self.port)
- def test_set_ssl_version_to_sslv3(self):
- self._pool.ssl_version = ssl.PROTOCOL_SSLv3
+ def test_set_ssl_version_to_tlsv1(self):
+ self._pool.ssl_version = ssl.PROTOCOL_TLSv1
self.assertRaises(SSLError, self._pool.request, 'GET', '/')
def test_ssl_version_as_string(self):
- self._pool.ssl_version = 'PROTOCOL_SSLv3'
+ self._pool.ssl_version = 'PROTOCOL_TLSv1'
self.assertRaises(SSLError, self._pool.request, 'GET', '/')
def test_ssl_version_as_short_string(self):
- self._pool.ssl_version = 'SSLv3'
+ self._pool.ssl_version = 'TLSv1'
self.assertRaises(SSLError, self._pool.request, 'GET', '/')
def test_discards_connection_on_sslerror(self):