Skip to content

Commit

Permalink
[1.26] Fix test_ssl_object_attributes
Browse files Browse the repository at this point in the history
Co-authored-by: Seth Michael Larson <sethmichaellarson@gmail.com>
  • Loading branch information
graingert and sethmlarson committed Apr 24, 2023
1 parent bbea166 commit 25cca38
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/test_ssltransport.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,11 @@ def test_ssl_object_attributes(self):
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

Expand Down

0 comments on commit 25cca38

Please sign in to comment.