mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 07:08:10 +00:00
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",
|
||||
"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",
|
||||
],
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user