14
0
Files
python-urllib3_1/support-fixed-ssl-shared_ciphers.patch
2023-05-22 11:24:38 +00:00

18 lines
735 B
Diff

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