diff --git a/python-urllib3_1.changes b/python-urllib3_1.changes index cc98ace..9e211bc 100644 --- a/python-urllib3_1.changes +++ b/python-urllib3_1.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon May 22 11:23:33 UTC 2023 - Steve Kowalik + +- 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 diff --git a/python-urllib3_1.spec b/python-urllib3_1.spec index b2d19d2..e1386ba 100644 --- a/python-urllib3_1.spec +++ b/python-urllib3_1.spec @@ -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} diff --git a/support-fixed-ssl-shared_ciphers.patch b/support-fixed-ssl-shared_ciphers.patch new file mode 100644 index 0000000..235d451 --- /dev/null +++ b/support-fixed-ssl-shared_ciphers.patch @@ -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 +