From: Victor Stinner Date: Thu, 20 Nov 2014 13:19:23 +0000 (+0100) Subject: asyncio, test_events: Ignore the "SSL handshake failed" log in debug mode X-Git-Tag: v3.4.3rc1~322 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c1ad35aae84d5cda4f73696844a87d7764224150;p=thirdparty%2FPython%2Fcpython.git asyncio, test_events: Ignore the "SSL handshake failed" log in debug mode --- diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index b05cb7ca972e..fab3259ffcab 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -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')