diff options
Diffstat (limited to 'net-proxy/mitmproxy/mitmproxy-5.2.ebuild')
-rw-r--r-- | net-proxy/mitmproxy/mitmproxy-5.2.ebuild | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net-proxy/mitmproxy/mitmproxy-5.2.ebuild b/net-proxy/mitmproxy/mitmproxy-5.2.ebuild index d5ba12b4c7c2..3a6b3954f6d4 100644 --- a/net-proxy/mitmproxy/mitmproxy-5.2.ebuild +++ b/net-proxy/mitmproxy/mitmproxy-5.2.ebuild @@ -68,8 +68,24 @@ python_prepare_all() { # remove failing test sed -i 's/test_get_version/_&/g' test/mitmproxy/test_version.py || die + # https://github.com/mitmproxy/mitmproxy/issues/4136 + # https://bugs.gentoo.org/740336 + rm test/mitmproxy/addons/test_termlog.py || die + # requires asynctest rm test/mitmproxy/addons/test_readfile.py || die + # Passes with OpenSSL 1.1.1g, fails with OpenSSL 1.1.1h + # https://github.com/gentoo/gentoo/pull/17411#discussion_r497270699 + sed \ + -e 's/test_mode_none_should_pass_without_sni/_&/g' \ + -e 's/test_mode_strict_w_pemfile_should_pass/_&/g' \ + -e 's/test_mode_strict_w_confdir_should_pass/_&/g' \ + -i test/mitmproxy/net/test_tcp.py || die + sed \ + -e 's/test_verification_w_confdir/_&/g' \ + -e 's/test_verification_w_pemfile/_&/g' \ + -i test/mitmproxy/proxy/test_server.py || die + distutils-r1_python_prepare_all } |