Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
WN committed Jun 25, 2024
1 parent 49dd0fa commit 4998df7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,15 +519,14 @@ def test_set_cipher_list(self, context, cipher_string):

assert "AES128-SHA" in conn.get_cipher_list()


def test_set_cipher_wrong_type(self, context):
"""
`Context.set_cipher_list` raises `TypeError` when
passed a non-string argument.
"""
with pytest.raises(TypeError):
context.set_cipher_list(object())

def test_set_ciphersuites_wrong_type(self, context):
"""
`Context.set_ciphersuites` raises `TypeError` when
Expand All @@ -536,7 +535,6 @@ def test_set_ciphersuites_wrong_type(self, context):
with pytest.raises(TypeError):
context.set_ciphersuites(object())


@pytest.mark.flaky(reruns=2)
def test_set_cipher_list_no_cipher_match(self, context):
"""
Expand Down

0 comments on commit 4998df7

Please sign in to comment.