fix Tornado 5.0 event loop

https://github.com/tornadoweb/tornado/issues/2183#issuecomment-371001254
This commit is contained in:
Thomas Kriechbaumer 2018-03-24 11:19:03 +01:00
parent f34932c171
commit eb297d82aa
2 changed files with 5 additions and 1 deletions

View File

@ -77,7 +77,7 @@ setup(
"pyperclip>=1.6.0, <1.7",
"ruamel.yaml>=0.13.2, <0.16",
"sortedcontainers>=1.5.4, <1.6",
"tornado>=4.3, <4.6",
"tornado>=4.3,<5.1",
"urwid>=2.0.1,<2.1",
"wsproto>=0.11.0,<0.12.0",
],

View File

@ -4,6 +4,10 @@ from mitmproxy.addons import onboarding
from mitmproxy.test import taddons
from .. import tservers
import asyncio
import tornado.platform.asyncio
asyncio.set_event_loop_policy(tornado.platform.asyncio.AnyThreadEventLoopPolicy())
class TestApp(tservers.HTTPProxyTest):
def addons(self):