summaryrefslogtreecommitdiff
path: root/Lib/test/test_asyncio/test_sslproto.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-06-07 17:06:50 +0200
committerGitHub <noreply@github.com>2018-06-07 17:06:50 +0200
commit2c8d665ba843fe875a4b8f0ae7c7e9099a06f0dc (patch)
treeb7437cbc371e773648a8b20f94b0a50fb661ed47 /Lib/test/test_asyncio/test_sslproto.py
parent21f2553482c3d6ec8beb8bfa0f1fb5d23c6a4c2f (diff)
downloadcpython-git-2c8d665ba843fe875a4b8f0ae7c7e9099a06f0dc.tar.gz
[3.6] bpo-32676, test_asyncio: Fix warning in test_error_in_call_soon() (GH-7462) (GH-7483)
* bpo-32676, test_asyncio: Fix warning in test_error_in_call_soon() (GH-7462) Fix "<CoroWrapper ...> was never yielded from" warning in PyTask_PyFuture_Tests.test_error_in_call_soon() of test_asyncio.test_tasks. Close manually the coroutine on error. (cherry picked from commit 9f04f0df6fdb27190690bda949d213893d14e807) * Hide a warning in test_asyncio test_cancel_handshake() SslProtoHandshakeTests.test_cancel_handshake() of test_asyncio.test_sslproto: hide a traceback about SSL handshake failure.
Diffstat (limited to 'Lib/test/test_asyncio/test_sslproto.py')
-rw-r--r--Lib/test/test_asyncio/test_sslproto.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_sslproto.py b/Lib/test/test_asyncio/test_sslproto.py
index 9b198bfd53..4ffbc0fbec 100644
--- a/Lib/test/test_asyncio/test_sslproto.py
+++ b/Lib/test/test_asyncio/test_sslproto.py
@@ -59,9 +59,9 @@ class SslProtoHandshakeTests(test_utils.TestCase):
return []
waiter.cancel()
- self.connection_made(ssl_proto, do_handshake=do_handshake)
with test_utils.disable_logger():
+ self.connection_made(ssl_proto, do_handshake=do_handshake)
self.loop.run_until_complete(handshake_fut)
def test_eof_received_waiter(self):