Skip to content

Commit

Permalink
Tests: test that an unknown ca alert was sent
Browse files Browse the repository at this point in the history
  • Loading branch information
hodbn committed Oct 18, 2020
1 parent e7f58d1 commit 8f9b974
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/with_dummyserver/test_socketlevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1451,7 +1451,8 @@ def socket_handler(listener):
certfile=DEFAULT_CERTS["certfile"],
ca_certs=DEFAULT_CA,
)
except ssl.SSLError:
except ssl.SSLError as e:
assert "alert unknown ca" in str(e)
if is_closed_socket(sock):
server_closed.set()

Expand Down

0 comments on commit 8f9b974

Please sign in to comment.