Kaydet (Commit) c1ad35aa authored tarafından Victor Stinner's avatar Victor Stinner

asyncio, test_events: Ignore the "SSL handshake failed" log in debug mode

üst 662fd5f6
...@@ -634,7 +634,9 @@ class EventLoopTestsMixin: ...@@ -634,7 +634,9 @@ class EventLoopTestsMixin:
# validation will fail # validation will fail
with self.assertRaises(ssl.SSLError) as cm: with self.assertRaises(ssl.SSLError) as cm:
conn_fut = create_connection(ssl=True) 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') self.assertEqual(cm.exception.reason, 'CERTIFICATE_VERIFY_FAILED')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment