aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorThomas Kriechbaumer <Kriechi@users.noreply.github.com>2018-03-24 11:41:21 +0100
committerGitHub <noreply@github.com>2018-03-24 11:41:21 +0100
commit2859ee2fa8c7f3311c069a40ada3975d31e8eccf (patch)
tree3988f38d67dd8fd45e94ec9ae8feff21d775d609 /test
parentf34932c1717eac9840811f617f6af097c556d2e2 (diff)
parenteb297d82aafe3f3880e35676eba9361f4f459110 (diff)
downloadmitmproxy-2859ee2fa8c7f3311c069a40ada3975d31e8eccf.tar.gz
mitmproxy-2859ee2fa8c7f3311c069a40ada3975d31e8eccf.tar.bz2
mitmproxy-2859ee2fa8c7f3311c069a40ada3975d31e8eccf.zip
Merge pull request #3010 from Kriechi/bump-tornado
fix Tornado 5.0 event loop
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/addons/test_onboarding.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/mitmproxy/addons/test_onboarding.py b/test/mitmproxy/addons/test_onboarding.py
index 810ddef1..0d99b1ff 100644
--- a/test/mitmproxy/addons/test_onboarding.py
+++ b/test/mitmproxy/addons/test_onboarding.py
@@ -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):