asyncio: sync with Tulip

* Tulip issue 184: FlowControlMixin constructor now get the event loop if the
  loop parameter is not set. Add unit tests to ensure that constructor of
  StreamReader and StreamReaderProtocol classes get the event loop.
* Remove outdated TODO/XXX
This commit is contained in:
Victor Stinner 2015-01-09 21:32:05 +01:00
parent 7eb10311be
commit 70db9e428a
6 changed files with 29 additions and 11 deletions

View file

@ -145,7 +145,6 @@ class BaseSelectorEventLoop(base_events.BaseEventLoop):
pass # False alarm.
except OSError as exc:
# There's nowhere to send the error, so just log it.
# TODO: Someone will want an error handler for this.
if exc.errno in (errno.EMFILE, errno.ENFILE,
errno.ENOBUFS, errno.ENOMEM):
# Some platforms (e.g. Linux keep reporting the FD as