# the client finishes with the response (this is noticeable
# with http/2, which leaves a Future with an unexamined
# StreamClosedError on the loop).
+
@gen.coroutine
def slow_stop():
# The number of iterations is difficult to predict. Typically,
def test_import_aliases(self):
# Ensure we don't delete formerly-documented aliases accidentally.
- import tornado.ioloop, tornado.gen, tornado.util
+ import tornado.ioloop
+ import tornado.gen
+ import tornado.util
self.assertIs(tornado.ioloop.TimeoutError, tornado.util.TimeoutError)
self.assertIs(tornado.gen.TimeoutError, tornado.util.TimeoutError)