summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-11-20 13:19:23 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-11-20 13:19:23 (GMT)
commitc1ad35aae84d5cda4f73696844a87d7764224150 (patch)
tree14e55cd4862b0d7578d9b9dacc688c8f55b9b83a
parent662fd5f68ef1a3bf7f4f7bbb4e50a876216424eb (diff)
downloadcpython-c1ad35aae84d5cda4f73696844a87d7764224150.zip
cpython-c1ad35aae84d5cda4f73696844a87d7764224150.tar.gz
cpython-c1ad35aae84d5cda4f73696844a87d7764224150.tar.bz2
asyncio, test_events: Ignore the "SSL handshake failed" log in debug mode
-rw-r--r--Lib/test/test_asyncio/test_events.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py
index b05cb7c..fab3259 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')