mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
Merge 3.4 (asyncio)
This commit is contained in:
commit
bf9765186d
3 changed files with 7 additions and 2 deletions
|
|
@ -956,7 +956,8 @@ def default_exception_handler(self, context):
|
|||
else:
|
||||
exc_info = False
|
||||
|
||||
if (self._current_handle is not None
|
||||
if ('source_traceback' not in context
|
||||
and self._current_handle is not None
|
||||
and self._current_handle._source_traceback):
|
||||
context['handle_traceback'] = self._current_handle._source_traceback
|
||||
|
||||
|
|
|
|||
|
|
@ -408,7 +408,6 @@ def __init__(self, loop, app_protocol, sslcontext, waiter,
|
|||
self._write_buffer_size = 0
|
||||
|
||||
self._waiter = waiter
|
||||
self._closing = False
|
||||
self._loop = loop
|
||||
self._app_protocol = app_protocol
|
||||
self._app_transport = _SSLProtocolTransport(self._loop,
|
||||
|
|
|
|||
|
|
@ -2,6 +2,10 @@
|
|||
|
||||
import unittest
|
||||
from unittest import mock
|
||||
try:
|
||||
import ssl
|
||||
except ImportError:
|
||||
ssl = None
|
||||
|
||||
import asyncio
|
||||
from asyncio import sslproto
|
||||
|
|
@ -14,6 +18,7 @@ def setUp(self):
|
|||
self.loop = asyncio.new_event_loop()
|
||||
self.set_event_loop(self.loop)
|
||||
|
||||
@unittest.skipIf(ssl is None, 'No ssl module')
|
||||
def test_cancel_handshake(self):
|
||||
# Python issue #23197: cancelling an handshake must not raise an
|
||||
# exception or log an error, even if the handshake failed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue