forked from pool/python-urllib3_1
Accepting request 1088343 from devel:languages:python
- Add patch support-fixed-ssl-shared_ciphers.patch:
* Support changes to the Python interpreter that fixed how
ssl.shared_ciphers behaves.
OBS-URL: https://build.opensuse.org/request/show/1088343
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-urllib3_1?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 22 11:23:33 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Add patch support-fixed-ssl-shared_ciphers.patch:
|
||||
* Support changes to the Python interpreter that fixed how
|
||||
ssl.shared_ciphers behaves.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 15 13:52:10 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -36,6 +36,8 @@ Source: https://files.pythonhosted.org/packages/source/u/urllib3/urllib3
|
||||
# PATCH-FIX-UPSTREAM remove_mock.patch gh#urllib3/urllib3#2108 mcepl@suse.com
|
||||
# remove dependency on the external module mock
|
||||
Patch0: remove_mock.patch
|
||||
# PATCH-FIX-OPENSUSE New Python versions fixed behaviour of ssl.shared_ciphers
|
||||
Patch1: support-fixed-ssl-shared_ciphers.patch
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
|
||||
17
support-fixed-ssl-shared_ciphers.patch
Normal file
17
support-fixed-ssl-shared_ciphers.patch
Normal file
@@ -0,0 +1,17 @@
|
||||
Index: urllib3-1.26.15/test/test_ssltransport.py
|
||||
===================================================================
|
||||
--- urllib3-1.26.15.orig/test/test_ssltransport.py
|
||||
+++ urllib3-1.26.15/test/test_ssltransport.py
|
||||
@@ -205,8 +205,10 @@ class SingleTLSLayerTestCase(SocketDummy
|
||||
assert ssock.selected_npn_protocol() is None
|
||||
|
||||
shared_ciphers = ssock.shared_ciphers()
|
||||
- assert type(shared_ciphers) == list
|
||||
- assert len(shared_ciphers) > 0
|
||||
+ # New Python versions fixed shared_ciphers
|
||||
+ if shared_ciphers is not None:
|
||||
+ assert type(shared_ciphers) == list
|
||||
+ assert len(shared_ciphers) > 0
|
||||
|
||||
assert ssock.compression() is None
|
||||
|
||||
Reference in New Issue
Block a user