def setUp(self):
self._bind_unused_port_orig = tornado.testing.bind_unused_port
tornado.testing.bind_unused_port = bind_unused_port
def cleanup():
tornado.testing.bind_unused_port = self._bind_unused_port_orig
self.addCleanup(cleanup)
super().setUp()
评论列表
文章目录