http: Remove conditional only needed for Tornado < 3.2

This commit is contained in:
Stein Magnus Jodal 2018-04-13 13:05:23 +02:00
parent 3e91f9819d
commit 41882c6395

View File

@ -41,9 +41,7 @@ class StaticFileHandlerTest(tornado.testing.AsyncHTTPTestCase):
response.headers['Cache-Control'], 'no-cache') response.headers['Cache-Control'], 'no-cache')
# We aren't bothering with skipIf as then we would need to "backport" gen_test class WebSocketHandlerTest(tornado.testing.AsyncHTTPTestCase):
if hasattr(tornado.websocket, 'websocket_connect'):
class WebSocketHandlerTest(tornado.testing.AsyncHTTPTestCase):
def get_app(self): def get_app(self):
self.core = mock.Mock() self.core = mock.Mock()