mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
asyncio, test_events: Ignore the "SSL handshake failed" log in debug mode
This commit is contained in:
parent
662fd5f68e
commit
c1ad35aae8
1 changed files with 3 additions and 1 deletions
|
@ -634,7 +634,9 @@ class EventLoopTestsMixin:
|
|||
# validation will fail
|
||||
with self.assertRaises(ssl.SSLError) as cm:
|
||||
conn_fut = create_connection(ssl=True)
|
||||
self._basetest_create_ssl_connection(conn_fut, check_sockname)
|
||||
# Ignore the "SSL handshake failed" log in debug mode
|
||||
with test_utils.disable_logger():
|
||||
self._basetest_create_ssl_connection(conn_fut, check_sockname)
|
||||
|
||||
self.assertEqual(cm.exception.reason, 'CERTIFICATE_VERIFY_FAILED')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue