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 4, 2020
1 parent 89f877e commit d5d2a88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/with_dummyserver/test_socketlevel.py
Expand Up @@ -1456,7 +1456,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 d5d2a88

Please sign in to comment.