Skip to content

Commit a6af6a1

Browse files
authored
Remove conditions for OpenSSL <1.1.0 (#1337)
1 parent 6520264 commit a6af6a1

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tests/test_ssl.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4506,15 +4506,9 @@ def pump():
45064506

45074507
# Check that the MTU set/query functions are doing *something*
45084508
c.set_ciphertext_mtu(1000)
4509-
try:
4510-
assert 500 < c.get_cleartext_mtu() < 1000
4511-
except NotImplementedError: # OpenSSL 1.1.0 and earlier
4512-
pass
4509+
assert 500 < c.get_cleartext_mtu() < 1000
45134510
c.set_ciphertext_mtu(500)
4514-
try:
4515-
assert 0 < c.get_cleartext_mtu() < 500
4516-
except NotImplementedError: # OpenSSL 1.1.0 and earlier
4517-
pass
4511+
assert 0 < c.get_cleartext_mtu() < 500
45184512

45194513
def test_it_works_at_all(self):
45204514
self._test_handshake_and_data(srtp_profile=None)

0 commit comments

Comments
 (0)