forked from pool/python-urllib3
- Update to Version 1.14 (2015-12-29) * contrib: SOCKS proxy support! (Issue #762) * Fixed AppEngine handling of transfer-encoding header and bug in Timeout defaults checking. (Issue #763) - Update to Version 1.13.1 (2015-12-18) * Fixed regression in IPv6 + SSL for match_hostname. (Issue #761) - Update to Version 1.13 (2015-12-14) * Fixed pip install urllib3[secure] on modern pip. (Issue #706) * pyopenssl: Fixed SSL3_WRITE_PENDING error. (Issue #717) * pyopenssl: Support for TLSv1.1 and TLSv1.2. (Issue #696) * Close connections more defensively on exception. (Issue #734) * Adjusted read_chunked to handle gzipped, chunk-encoded bodies without repeatedly flushing the decoder, to function better on Jython. (Issue #743) * Accept ca_cert_dir for SSL-related PoolManager configuration. (Issue #758) - removed ready-event.patch: applied upstream - disabled more dysfunctional tests - restored ability to build with openSUSE <= 13.2 OBS-URL: https://build.opensuse.org/request/show/352078 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urllib3?expand=0&rev=15
32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
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):
|