mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 10:16:27 +00:00
Merge pull request #3010 from Kriechi/bump-tornado
fix Tornado 5.0 event loop
This commit is contained in:
commit
2859ee2fa8
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
Block a user