fix Tornado 5.0 event loop
https://github.com/tornadoweb/tornado/issues/2183#issuecomment-371001254
This commit is contained in:
parent
f34932c171
commit
eb297d82aa
2
setup.py
2
setup.py
|
@ -77,7 +77,7 @@ setup(
|
||||||
"pyperclip>=1.6.0, <1.7",
|
"pyperclip>=1.6.0, <1.7",
|
||||||
"ruamel.yaml>=0.13.2, <0.16",
|
"ruamel.yaml>=0.13.2, <0.16",
|
||||||
"sortedcontainers>=1.5.4, <1.6",
|
"sortedcontainers>=1.5.4, <1.6",
|
||||||
"tornado>=4.3, <4.6",
|
"tornado>=4.3,<5.1",
|
||||||
"urwid>=2.0.1,<2.1",
|
"urwid>=2.0.1,<2.1",
|
||||||
"wsproto>=0.11.0,<0.12.0",
|
"wsproto>=0.11.0,<0.12.0",
|
||||||
],
|
],
|
||||||
|
|
|
@ -4,6 +4,10 @@ from mitmproxy.addons import onboarding
|
||||||
from mitmproxy.test import taddons
|
from mitmproxy.test import taddons
|
||||||
from .. import tservers
|
from .. import tservers
|
||||||
|
|
||||||
|
import asyncio
|
||||||
|
import tornado.platform.asyncio
|
||||||
|
asyncio.set_event_loop_policy(tornado.platform.asyncio.AnyThreadEventLoopPolicy())
|
||||||
|
|
||||||
|
|
||||||
class TestApp(tservers.HTTPProxyTest):
|
class TestApp(tservers.HTTPProxyTest):
|
||||||
def addons(self):
|
def addons(self):
|
||||||
|
|
Loading…
Reference in New Issue