Setup help needed

Hello.

I am trying to get mitmproxy setup on Ubuntu 16.04.

My py.test hangs in test_server.py and has a “F” instead of a “.” for test_proxy.py (see below). The tox test also fails for py35 despite having python3 installed.

How do I go about debugging what is wrong with my setup?

py.test

================================================================================================== test session starts ==================================================================================================
platform linux2 – Python 2.7.12, pytest-3.0.2, py-1.4.31, pluggy-0.3.1
rootdir: /root/GH/mitmproxy, inifile: setup.cfg
plugins: xdist-1.15.0, cov-2.3.1, faulthandler-1.3.0, timeout-1.0.0
collected 1014 items

test/mitmproxy/test_addons.py .
test/mitmproxy/test_app.py …
test/mitmproxy/test_cmdline.py …
test/mitmproxy/test_contentview.py …
test/mitmproxy/test_contrib_tnetstring.py …
test/mitmproxy/test_controller.py …
test/mitmproxy/test_custom_contentview.py .
test/mitmproxy/test_dump.py …
test/mitmproxy/test_examples.py …
test/mitmproxy/test_filt.py …
test/mitmproxy/test_flow.py …
test/mitmproxy/test_flow_export.py …
test/mitmproxy/test_flow_format_compat.py …
test/mitmproxy/test_fuzzing.py …
test/mitmproxy/test_optmanager.py …
test/mitmproxy/test_platform_pf.py .
test/mitmproxy/test_proxy.py …F…
test/mitmproxy/test_proxy_config.py …
test/mitmproxy/test_server.py .

That’s weird - our Linux tests are on Ubuntu/Debian, and that works just fine. Do you see a stack trace after the tests have finished? Can you pass --no-capture -v to py.test to find out which specific test fails?

–no-capture was rejected as an argument but -v produced the output below and it is stuck on the last test.

test/mitmproxy/test_proxy.py::TestProcessProxyOptions::test_upstream_trusted_ca PASSED
test/mitmproxy/test_proxy.py::TestProxyServer::test_err FAILED
test/mitmproxy/test_proxy.py::TestProxyServer::test_err_2 PASSED
test/mitmproxy/test_proxy.py::TestDummyServer::test_simple PASSED
test/mitmproxy/test_proxy.py::TestConnectionHandler::test_fatal_error PASSED
test/mitmproxy/test_proxy_config.py::test_parse_server_spec PASSED
test/mitmproxy/test_proxy_config.py::test_parse_upstream_auth PASSED
test/mitmproxy/test_server.py::TestHTTP::test_large PASSED
test/mitmproxy/test_server.py::TestHTTP::test_replay