asyncio: sync with Tulip

* Remove unused SSLProtocol._closing attribute
* test_sslproto: skip test if ssl module is missing
* Python issue #23208: Don't use the traceback of the current handle if we
  already know the traceback of the source. The handle may be more revelant,
  but having 3 tracebacks (handle, source, exception) becomes more difficult to
  read. The handle may be preferred later but it requires more work to make
  this choice.
This commit is contained in:
Victor Stinner 2015-01-28 00:30:40 +01:00
parent b68c420d8a
commit ff018e406c
3 changed files with 7 additions and 2 deletions

View file

@ -956,7 +956,8 @@ class BaseEventLoop(events.AbstractEventLoop):
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