We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbea166 commit 25cca38Copy full SHA for 25cca38
test/test_ssltransport.py
@@ -202,8 +202,11 @@ def test_ssl_object_attributes(self):
202
assert ssock.selected_npn_protocol() is None
203
204
shared_ciphers = ssock.shared_ciphers()
205
- assert type(shared_ciphers) == list
206
- assert len(shared_ciphers) > 0
+ # SSLContext.shared_ciphers() changed behavior completely in a patch version.
+ # See: https://github.com/python/cpython/issues/96931
207
+ assert shared_ciphers is None or (
208
+ type(shared_ciphers) is list and len(shared_ciphers) > 0
209
+ )
210
211
assert ssock.compression() is None
212
0 commit comments