diff options
| author | Thomas Grainger <tagrain@gmail.com> | 2023-04-15 20:41:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-15 14:41:24 -0500 |
| commit | 4855d71ad5535bdff47a0dc5cfe09fb610ff6576 (patch) | |
| tree | 5966d4c2591d340092024ba7dd9e6a5db86c018f | |
| parent | da6a3f55d58742ec373d86094ce7bef9e4ac4892 (diff) | |
| download | urllib3-4855d71ad5535bdff47a0dc5cfe09fb610ff6576.tar.gz | |
Fix test_ssl_object_attributes
Co-authored-by: Seth Michael Larson <sethmichaellarson@gmail.com>
| -rw-r--r-- | test/test_ssltransport.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/test_ssltransport.py b/test/test_ssltransport.py index a3b73816..cace51db 100644 --- a/test/test_ssltransport.py +++ b/test/test_ssltransport.py @@ -229,8 +229,11 @@ class SingleTLSLayerTestCase(SocketDummyServerTestCase): assert ssock.selected_npn_protocol() is None shared_ciphers = ssock.shared_ciphers() - assert type(shared_ciphers) == list - assert len(shared_ciphers) > 0 + # SSLContext.shared_ciphers() changed behavior completely in a patch version. + # See: https://github.com/python/cpython/issues/96931 + assert shared_ciphers is None or ( + type(shared_ciphers) is list and len(shared_ciphers) > 0 + ) assert ssock.compression() is None |
