diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-11-20 14:18:53 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-11-20 14:18:53 +0100 |
commit | 4377c749acb8e05dfd0fb762c860a4f29c99dd7a (patch) | |
tree | 1f8bdf1f5e23c67927b70a876b53d659c81ec785 /tests | |
parent | 9b7263655e56513bd2370d5558de9ff9f6f2a504 (diff) | |
download | trollius-4377c749acb8e05dfd0fb762c860a4f29c99dd7a.tar.gz |
test_events: Ignore the "SSL handshake failed" log in debug mode
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_events.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_events.py b/tests/test_events.py index b05cb7c..fab3259 100644 --- a/tests/test_events.py +++ b/tests/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') |