提交 d55627b5 编写于 作者: B Ben Darnell

Run new autopep8

上级 b7c59478
......@@ -1195,7 +1195,7 @@ class Runner(object):
elif not self.future.done():
def inner(f):
# Break a reference cycle to speed GC.
f = None # noqa
f = None # noqa
self.run()
self.io_loop.add_future(
self.future, inner)
......
......@@ -608,6 +608,7 @@ class SyncHTTPClientTest(unittest.TestCase):
# 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,
......
......@@ -48,6 +48,8 @@ class ImportTest(unittest.TestCase):
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)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册